Jump to content
  • 0

[HELP]how to get the value of the players experience by Ai function???


sandeagle

Question

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)

Link to comment
Share on other sites

4 answers to this question

Recommended Posts

  • 0

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

Link to comment
Share on other sites

  • 0

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...

Link to comment
Share on other sites

  • 0

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

Link to comment
Share on other sites

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.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.



×
×
  • Create New...