Alerd Posted October 17, 2012 Author Share Posted October 17, 2012 Hello this is my first tutorial that will help counting ![:)](http://www.touchofdeathforums.com/community/public/style_emoticons/<#EMO_DIR#>/smile.png)Open server search ctrl+f```Call SetPlayerExp(Index, expRollover)```In this paste:```Select Case GetPlayerLevel(Index)Case 15If GetPlayerClass(Index) = 1 ThenSetPlayerClass Index, 2SetPlayerSprite Index, 2SetPlayerStat Index, Strength, GetPlayerStat(Index, Strength) + 10SetPlayerStat Index, Endurance, GetPlayerStat(Index, Endurance) + 10SendStats IndexCall PlayerMsg(Index, "Upgrade Class ![:)](http://www.touchofdeathforums.com/community/public/style_emoticons/<#EMO_DIR#>/smile.png)", Yellow)End IfEnd Select``````case 15 >> the level at which a character is transformedIf GetPlayerClass(Index) = 1 Then >>>class number which is requiredSetPlayerClass Index, 2>>>In what class changesSetPlayerSprite Index, 2 >>>It is knownSetPlayerStat Index, Strength, GetPlayerStat(Index, Strength) [color]+ 10[/color] <<``` Link to comment Share on other sites More sharing options...
highonpaint Posted October 17, 2012 Share Posted October 17, 2012 Thats great but where are the classes located/stored? Link to comment Share on other sites More sharing options...
Alerd Posted October 17, 2012 Author Share Posted October 17, 2012 in server classes.ini hide new classes look for this tut[http://www.touchofdeathforums.com/community/index.php?/topic/117005-eo-locked-classes/](http://www.touchofdeathforums.com/community/index.php?/topic/117005-eo-locked-classes/) Link to comment Share on other sites More sharing options...
highonpaint Posted October 17, 2012 Share Posted October 17, 2012 but then the classes.ini loads all of the classes when you create a new charscratch that I derpedand what version of eclipse is this for? Link to comment Share on other sites More sharing options...
Alerd Posted October 17, 2012 Author Share Posted October 17, 2012 Ehh why I gave the link to the class cornet blocked during registration … ![:)](http://www.touchofdeathforums.com/community/public/style_emoticons/<#EMO_DIR#>/smile.png)each version eo ... Link to comment Share on other sites More sharing options...
Elihu Posted October 17, 2012 Share Posted October 17, 2012 This will come in handy, nice job. Link to comment Share on other sites More sharing options...
Alerd Posted October 17, 2012 Author Share Posted October 17, 2012 Thank you for your comments ![:)](http://www.touchofdeathforums.com/community/public/style_emoticons/<#EMO_DIR#>/smile.png) Link to comment Share on other sites More sharing options...
highonpaint Posted October 18, 2012 Share Posted October 18, 2012 this system does it then make the new class stats not be aplied? like if someones stat in strength is 12 and the new class's stat is 10 will it lower the layer's stat? Link to comment Share on other sites More sharing options...
Alerd Posted October 18, 2012 Author Share Posted October 18, 2012 I'm sorry but I'm not able to check if your answer if you swap + to - Link to comment Share on other sites More sharing options...
highonpaint Posted October 18, 2012 Share Posted October 18, 2012 > I'm sorry but I'm not able to check if your answer if you swap + to -Thats fine I think Ive worked it out but I do have a question that is vital to mehow would I make this so a player could choose there class advancement? here is my plan - everyone starts out as the same class, at level 5 the can become either a mage, priest, hunter or warrior. how would I go about this? Link to comment Share on other sites More sharing options...
Ertzel Posted October 18, 2012 Share Posted October 18, 2012 To make sure the stat doesn't go over the class max you would have to edit it to remove the stats that are over.Example:```Dim extraStats As LongextraStats = 0Select Case GetPlayerLevel(Index)Case 15If GetPlayerClass(Index) = 1 ThenSetPlayerClass Index, 2SetPlayerSprite Index, 2SetPlayerStat Index, Strength, GetPlayerStat(Index, Strength) + 10If GetPlayerStat(Index, Strength) + 10 > 30 ThenextraStats = extraStats + GetPlayerStat(Index, Strength) - 30SetPlayerStat Index, Strength, 30'replace 30 with whatever the classes max isEnd IfSetPlayerStat Index, Endurance, GetPlayerStat(Index, Endurance) + 10If GetPlayerStat(Index, Endurance) + 10 > 40 ThenextraStats = extraStats + GetPlayerStat(Index, Endurance) - 40SetPlayerStat Index, Endurance, 40'replace 40 with whatever the classes max isEnd IfSetPlayerPOINTS Index, GetPlayerPOINTS(Index + extraStats)SendStats IndexSendPlayerData IndexCall PlayerMsg(Index, "Upgrade Class", Yellow)End IfEnd Select``` Link to comment Share on other sites More sharing options...
sweetboy Posted December 29, 2013 Share Posted December 29, 2013 er excuse me what if i want to change the class from event and reset the stat,and lvland make it into skill point? :D Link to comment Share on other sites More sharing options...
moronsnail Posted December 29, 2013 Share Posted December 29, 2013 omg programming really looks complicated in my eyes D: , im not smart :> Link to comment Share on other sites More sharing options...
Orbegon Posted December 29, 2013 Share Posted December 29, 2013 Great first tutorial! :D 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