sandeagle Posted July 21, 2010 Share Posted July 21, 2010 somebodys have written a rebirth system last years ago,but i found something arenot nice,like Reduce Players experience... why not get the players experience at first?? Then "myself->IncrementParam(talker,0,-1511275834);" is it possible??? :-\ if( talker.level == 78 && talker.subjob_id == 0 ) { if( reply == 1 ) { myself->IncrementParam(talker,0,-1511275834); myself->GiveItem1(talker,9700,1); myself->GiveItem1(talker,9701,1); myself->ShowPage(talker,"rebirth1st_completed.htm"); myself->SoundEffect(talker,"ItemSound.quest_finish"); } else if( reply == 2 ) { myself->IncrementParam(talker,0,-1511275834); myself->GiveItem1(talker,9700,1); myself->GiveItem1(talker,9701,1); myself->ShowPage(talker,"rebirth2nd_completed.htm"); myself->SoundEffect(talker,"ItemSound.quest_finish"); } else if( reply == 3 ) { myself->IncrementParam(talker,0,-1511275834); myself->GiveItem1(talker,9700,1); myself->GiveItem1(talker,9701,1); myself->ShowPage(talker,"rebirth3rd_completed.htm"); myself->SoundEffect(talker,"ItemSound.quest_finish"); } } Credits list: - Sauron & Forcer for Nasc GUI - PALLiS helping in NASC code - And me for the Code (Fot@r@s) Quote Link to comment Share on other sites More sharing options...
0 rej222 Posted July 21, 2010 Share Posted July 21, 2010 First replace -> with :: and if you want to give him exp right just do this myself::IncrementParam(talker,0,1511275834); remove the - (minus) infront I don't know if this helps u but i didnt understand ur full question Quote Link to comment Share on other sites More sharing options...
0 sandeagle Posted July 21, 2010 Author Share Posted July 21, 2010 First replace -> with :: and if you want to give him exp right just do this myself::IncrementParam(talker,0,1511275834); remove the - (minus) infront I don't know if this helps u but i didnt understand ur full question i means there was a problom in that rebirth system.... for example: 1 player,lvl is 78,exp 15%.then rebirth...and his exp will increase -1511275834.but his lvl will not be demote to 1lvl.coz 1511275834 just 78lvl 0%... sorry for my bad eng...i just wanna how to lower level form 78 to 1... Quote Link to comment Share on other sites More sharing options...
0 rej222 Posted July 21, 2010 Share Posted July 21, 2010 myself->IncrementParam(talker,0,-1511275834); myself->IncrementParam(talker,0,-1511275834); myself->IncrementParam(talker,0,-1511275834); try it like this put 3 times in a row Quote Link to comment Share on other sites More sharing options...
0 mcbigmac Posted July 21, 2010 Share Posted July 21, 2010 If you want get it to zero, just always decrease by max lvl 78. simple. Since there's no EXP var/event in AI, it gets tricky if you want to decrease to level 40 or something else. That's where it's get tricky. I recommend your own small checks, with decreasing exp based on level. Kind of like a array, that's not an array :P Quote Link to comment Share on other sites More sharing options...
Question
sandeagle
somebodys have written a rebirth system last years ago,but i found something arenot nice,like Reduce Players experience...
why not get the players experience at first?? Then "myself->IncrementParam(talker,0,-1511275834);"
is it possible???
Credits list:
- Sauron & Forcer for Nasc GUI
- PALLiS helping in NASC code
- And me for the Code (Fot@r@s)
Link to comment
Share on other sites
4 answers to this question
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.