Golf Posted April 11, 2015 Author Share Posted April 11, 2015 Hi,this is tutorial how to change your sprite by using itemBOTHIn both(Server and client) in modTypes in ItemRec add :```Sprite as Long```CLIENT SIDEIn item editor form add label and name it lblSprite and scrollbar scrlSpritein scrlSprite code add :```lblSprite.Caption = "Sprite: " & scrlSprite.Value Item(EditorIndex).Sprite = scrlSprite.Value```Go to modGameEditors, find sub:ItemEditorInitand add:```frmeditor_item.scrlSprite.Value = Item(EditorIndex).Sprite```SERVER SIDE:Go to modPlayer and in sub UseItem at the end of every case add :```'Check Sprite If Item(itemnum).Sprite = 0 Then 'If there is no sprite it wont change it Else SetPlayerSprite Index, Item(itemnum).Sprite Call SendPlayerData(Index) End If```DONE! Link to comment Share on other sites More sharing options...
Daneta Posted April 11, 2015 Share Posted April 11, 2015 ```do like this for code XD``` Link to comment Share on other sites More sharing options...
Golf Posted April 12, 2015 Author Share Posted April 12, 2015 I forgot lol Link to comment Share on other sites More sharing options...
GalacticGlum Posted April 12, 2015 Share Posted April 12, 2015 Oh cool I can make some sort of hair change! Link to comment Share on other sites More sharing options...
Daneta Posted April 12, 2015 Share Posted April 12, 2015 well its for char i think, but if u modify it, then sure @[member="Hackertatio"]@[member="Golf"] ur money amount lol…... Link to comment Share on other sites More sharing options...
Golf Posted April 13, 2015 Author Share Posted April 13, 2015 yeah it's easy to set hair color with UseItem if you already have hair color changing in your engine. Link to comment Share on other sites More sharing options...
DarkDino Posted April 16, 2015 Share Posted April 16, 2015 nice thing, this help for the new members :). 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