Prince Posted December 22, 2012 Author Share Posted December 22, 2012 **Introduce**I'm no programmer, i just mess around modgraphic and figure out this cool feature. Actually not a complete feature for a VIP system, so i just tittle it as Rendering graphic over player head. I will update this later to an complete VIP system.I'm using GetPlayerAccess >= 1 to make the graphic appear.**What it will look like**![](http://www.freemmorpgmaker.com/files/imagehost/pics/74a9fe61ed0cbd1719ba4de81ad64ae3.png)**Client Side Only**- Download the attachment and put it into "client\data files\graphics\misc"- Go to **ModGraphic**Search for :```Public Tex_Shadow As DX8TextureRec```Under it add :```Public Tex_VIP As DX8TextureRec```- In **Private Sub LoadTexture**Search for :```ReDim Preserve gTexture(NumTextures)```Under Add :```Tex_VIP.filepath = App.Path & "\data files\graphics\misc\vip.png"Tex_VIP.Texture = NumTextures - 10```- In **Public Sub UnloadTextures()**Search for :```Tex_Shadow.Texture = 0```Under Add :```Tex_VIP.Texture = 0```- In **Public Sub DrawPlayer(ByVal Index As Long)**Search for :```If GetTickCount > TempPlayer(Index).StartFlash ThenCall DrawSprite(Sprite, X, Y, rec) TempPlayer(Index).StartFlash = 0Else Call DrawSprite(Sprite, X, Y, rec, True)End If```Under Add :```' render vipIf GetPlayerAccess(Index) >= 1 Then RenderTexture Tex_VIP, ConvertMapX(X - 42), ConvertMapY(Y - 40), 0, 0, 128, 32, 128, 32, D3DColorRGBA(255, 255, 255, 200)End If```I will make a complete of the VIP feature in the future. So i don't think this helpful for some reason. Anyway just share it.Prince Link to comment Share on other sites More sharing options...
clark Posted December 27, 2012 Share Posted December 27, 2012 Thank you for this tutorial !I didn't tryed that for the momentEdit : Tryed , Working perfectly thanks ![;)](http://www.touchofdeathforums.com/community/public/style_emoticons/<#EMO_DIR#>/wink.png) Link to comment Share on other sites More sharing options...
Prince Posted December 28, 2012 Author Share Posted December 28, 2012 > Thank you for this tutorial !> > I didn't tryed that for the moment> > Edit : Tryed , Working perfectly thanks ![;)](http://www.touchofdeathforums.com/community/public/style_emoticons/<#EMO_DIR#>/wink.png)You cam make a GM icon instead, lol. Link to comment Share on other sites More sharing options...
clark Posted December 30, 2012 Share Posted December 30, 2012 I did change it. Link to comment Share on other sites More sharing options...
Growlith1223 Posted December 30, 2012 Share Posted December 30, 2012 Why do a Seperate Tex_ for that. Make an array```Public Tex_Staff(1 to ) As DX8TextureRec ```And use that instead.I'm thinking that way would seem better instead of bombarding the top of the Module with tons of Publics/Privates when you can use Arrays where needed ![:)](http://www.touchofdeathforums.com/community/public/style_emoticons/<#EMO_DIR#>/smile.png) Link to comment Share on other sites More sharing options...
DarkDino Posted January 20, 2013 Share Posted January 20, 2013 Nice, Thanks ![:)](http://www.touchofdeathforums.com/community/public/style_emoticons/<#EMO_DIR#>/smile.png)! Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now