Styker Posted December 24, 2011 Author Share Posted December 24, 2011 Hello. Sorry to bother you all, this might have already been answered but I have checked multiple times different days, with no luck. I tried to do it myself and just messed it up.Could someone please tell me how to make it where you gain a certain item on level up? Like it will spawn in your inventory when you gain a level and if it could also be non trade or non droppable that would be awesome. Thank You :D Link to comment Share on other sites More sharing options...
shadyyyy Posted December 25, 2011 Share Posted December 25, 2011 I think no one is gonna make it for you.Maybe someone is going yo help you find the good path.First you have to make a function wich will search in the inventory to a slot that contains an item number zero.Use this function in the function that allows the player to level up, Idk what it's called, maybe onPlayerLevelUp or something… or handlePlayerLevelUp.. Idk search for it.So now you have the slot number that contains the item num zero.In the same function of player level up make it so it changes the itemNum of that slot into the itemNum you want to give on level up.If there is no free slot, simply drop the item on the tile where the player is on.If you want it to be more advanced, you can make every class have it's own OnLevelUpItemNum in the class files.Good Luck and happy christmas.EDIT: Don't forget to sendplayerdata Link to comment Share on other sites More sharing options...
DJMaxus Posted December 25, 2011 Share Posted December 25, 2011 Just use function GiveInvItem in sub CheckPlayerLevelUp. Link to comment Share on other sites More sharing options...
Sicarii Posted December 25, 2011 Share Posted December 25, 2011 shady…..you completely changed your entire first reply or so as i "readen"....and your new reply....is not as bluntly retarded...but it still doesnt really help. Djmaxus helped with subs.this whole topic should be linked to the "this is it" topic. perfect example of a legitimate question and the typical dumbass response. Some replies should simply be deleted. Hell make a forum for deleted posts for ppl to female dog...at least shit would stay on topic then.theres no reason other than laziness why certain rules couldnt be held more strict in certain forum categories. even the noob i am was banned from chat for a week for postin a pic of robin......lmao....no just a nasty pic and since i had to see it i had to shareedit: "female dog"? but i can say shit? i'll name my next dog Stains so i can open the door and yell COME STAINS Link to comment Share on other sites More sharing options...
shadyyyy Posted December 25, 2011 Share Posted December 25, 2011 @Sicarii:> …Calm down sweety, in my first post I was a retard and an asshole to him because he is asking a stupid question:@Styker:> and if it could also be non trade or non droppable that would be awesome. Link to comment Share on other sites More sharing options...
Styker Posted December 27, 2011 Author Share Posted December 27, 2011 Thank You everyone.Also I was not asking for anyone to do it for me, I was asking for help. Plus its not a stupid question if you do not know ;).Thank You for the help though <3 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