Jump to content
  • 0

Help with base level changes


iagofonteles

Question


  • Group:  Members
  • Topic Count:  1
  • Topics Per Day:  0.00
  • Content Count:  2
  • Reputation:   0
  • Joined:  07/16/12
  • Last Seen:  

Well, I've just trying to make and npc that makes you level down and give prizes accordly.

but if I just set BaseLevel to anything it will not update the StatusPoint and it will make infinity status points (what i don't want...)

i dunno how to use a kind of @blvl (atcommand) inside the scripts.

so for now my script is something like...

Unleveling:==

mes "levels to loose";
input(@qnty);[/indent]
if (@qnty>=BaseLevel) {[/indent]
mes "Voce so pode regredir "+(BaseLevel-1)+" Levels.";[/indent]
next;[/indent]
goto L_Levelinput;[/indent]
} if (@qnty==0) goto L_Exit;[/indent]
set lvlmngr_downgraded,@qnty;[/indent]
// set BaseLevel,BaseLevel-@qnty;[/indent]
@blvl BaseLevel-@qnty;[/indent]
set lvlmngr_start,BaseLevel;[/indent]
mes "Agora va upar !!";[/indent]
close;[/indent]

Releveling:==

mes "reclaim level and score";
set lvlmngr_score,lvlmngr_downgraded*3+(BaseLevel-lvlmngr_start)*2;
mes "[Level Manager]";
mes "Voce regrediu "+lvlmngr_downgraded+" levels e";
mes "reavancou "+(BaseLevel-lvlmngr_start)+" levels.";
mes "Sua pontuacao é "+lvlmngr_score;
if (BaseLevel>lvlmngr_downgraded+lvlmngr_start) {
mes "[Level Manager]";
mes "Nossa, Voce adquiriu mais levels que antes!";
next;
mes "[Level Manager]";
mes "Nossa, Voce adquiriu mais levels que antes!";
mes "Nesse caso nao vou regredir seu nivel.";
// } else { set BaseLevel,lvlmngr_start+lvlmngr_downgraded; }
} else { @blvl lvlmngr_start+lvlmngr_downgraded; }
set lvlmngr_cash,lvlmngr_cash+lvlmngr_score;
set lvlmngr_downgraded,0;
set lvlmngr_start,0;
set lvlmngr_score,0;
close;

(the complete file attached)

C_Level_Mngr.txt

Edited by iagofonteles
Link to comment
Share on other sites

2 answers to this question

Recommended Posts


  • Group:  Members
  • Topic Count:  94
  • Topics Per Day:  0.02
  • Content Count:  2192
  • Reputation:   252
  • Joined:  11/11/11
  • Last Seen:  

Why don't you just reset their status points? And allow them to buy more from the Status Points seller?

*resetstatus;
This is a character reset command, which will reset the stats on the invoking
character and give back all the stat points used to raise them previously.
Nothing will happen to any other numbers about the character.
Used in reset NPC's (duh!)

Also, you could always use resetlvl:

---------------------------------------
*resetlvl <action type>;
This is a character reset command, meant mostly for rebirth script supporting
Advanced jobs, which will reset the invoking character's stats and level
depending on the action type given. Valid action types are:
1 - Base level 1, Job level 1, 0 skill points, 0 base exp, 0 job exp, wipes the
 status effects (only the ones settable by 'setoption'), sets all stats to 1.
 If the new job is 'Novice High', give 100 status points, give First Aid and
 Play Dead skills.
2 - Base level 1, Job level 1, 0 skill points, 0 base exp, 0 job exp.
 Skills and attribute values are not altered.
3 - Base level 1, base exp 0. Nothing else is changed.
4 - Job level 1, job exp 0. Nothing else is changed.
In all cases everything the character has on will be unequipped.
Even though it doesn't return a value, it is used as a function in the official
rebirth scripts. Ask AppleGirl why.
---------------------------------------

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  1
  • Topics Per Day:  0.00
  • Content Count:  2
  • Reputation:   0
  • Joined:  07/16/12
  • Last Seen:  

wow o.o it worked ....

i hav not used the resetstatus command since it says "points used to raise them previously",

but it DO recalculate the points for the level t-t

thanks, i'll just test the possibilities before posting again...

Edited by iagofonteles
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.

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