Jump to content
  • 0

Is this correct?


Ragnar Lothbrok

Question


  • Group:  Members
  • Topic Count:  91
  • Topics Per Day:  0.02
  • Content Count:  309
  • Reputation:   6
  • Joined:  04/24/12
  • Last Seen:  

i want my script detect the level of the player, if the character is not yet lvl 99 it will not get the items or the conversation will not continue...thanks in advance

if(BaseLevel <=98 ){

mes "GTFU";

close;

}

Edited by arnie2302
Link to comment
Share on other sites

4 answers to this question

Recommended Posts


  • Group:  Members
  • Topic Count:  4
  • Topics Per Day:  0.00
  • Content Count:  81
  • Reputation:   14
  • Joined:  08/17/12
  • Last Seen:  

If player lvl 98 , auto close can't view the NPC message after.

if(BaseLevel < 99) { // this is closing
mes "this is player lvl 99 can view"
close;
}

Or if you want add mes "GTFU" , here

if(BaseLevel < 99) goto notlvl;
mes "this is player lvl 99 can view"
close;

notlvl:
mes "GTFU";
close;
}

Edited by Yahiko
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  91
  • Topics Per Day:  0.02
  • Content Count:  309
  • Reputation:   6
  • Joined:  04/24/12
  • Last Seen:  

thanks sir, what if want also to detect a item in his inventory?

Edited by arnie2302
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  4
  • Topics Per Day:  0.00
  • Content Count:  81
  • Reputation:   14
  • Joined:  08/17/12
  • Last Seen:  

Multiple item

if(countitem(7512)<2 || countitem(7540)<2) goto notenog;
mes "Welcome";
close;

notenog:
mes "You don't have the items";
close;
}

For 1 item only

if(countitem(7512)<2) goto notenog;
mes "Welcome";
close;

notenog:
mes "You don't have the items";
close;
}

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