Ridrik Posted July 15, 2009 Author Share Posted July 15, 2009 Hi, anyone knows a tutorial or a script on the quests that you can change your class? I mean like if a person completes a quest, they change their class to whatever the quest says. Is there that kind of script? please post a link or explain. Currently, i'm using [http://www.touchofdeathforums.com/smf/index.php/topic,43528.0.html](http://www.touchofdeathforums.com/smf/index.php/topic,43528.0.html) <–- this quest system, so if anyone can figure it out how to get a class change as a reward with this quest sytem ,please let me know. Link to comment Share on other sites More sharing options...
DarkSpine Posted July 16, 2009 Share Posted July 16, 2009 If you know where to put it, just add this for the reward part.```Call SetPlayerClass(Index, #)``` Link to comment Share on other sites More sharing options...
Ridrik Posted July 16, 2009 Author Share Posted July 16, 2009 still doesn't change the class. :( Link to comment Share on other sites More sharing options...
Ruins of Hell Posted July 16, 2009 Share Posted July 16, 2009 How bout giving a key as the reward that let's you get into the place with the class change? Seems unprofessional but if you add another part like: "go to blah to get your reward" Then you put a key block in the passageway to the room and put a class change infront of him that would work. Link to comment Share on other sites More sharing options...
Bobosk Posted July 16, 2009 Share Posted July 16, 2009 when you use```SetPlayerClass(Index, #)```there is no visible change, nor is there going to be a stat change. UNLESS you script it in. Link to comment Share on other sites More sharing options...
DarkSpine Posted July 16, 2009 Share Posted July 16, 2009 Sorry, I wrote that too quickly, add/put this in the rewards:```Call SetPlayerClass(Index, #)Call SetPlayerSTR(Index, GetVar("/Classes/Class#.ini", "CLASS", "STR"))Call SetPlayerDEF(Index, GetVar("/Classes/Class#.ini", "CLASS", "DEF"))Call SetPlayerSPEED(Index, GetVar("/Classes/Class#.ini", "CLASS", "SPEED"))Call SetPlayerMAGI(Index, GetVar("/Classes/Class#.ini", "CLASS", "MAGI"))If GetPlayerGender(Index) = 0 ThenCall SetPlayerSprite(Index, GetVar("/Classes/Class#.ini", "CLASS", "MaleSprite"))ElseCall SetPlayerSprite(Index, GetVar("/Classes/Class#.ini", "CLASS", "FemaleSprite")End IfCall SendPlayerData(Index)```Just fill in any "#"s in there, so that Class# would be something like Class2, and setplayerclass(Index, #) would be the same as the class in any of the GetVars.(Example:SetPlayerClass(Index, 2))That should work, use that as a base for any others and it should work fine. Link to comment Share on other sites More sharing options...
Ridrik Posted July 17, 2009 Author Share Posted July 17, 2009 Thanks it works! Lock topic. 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