Jump to content
  • 0

Dialogue pop up when reaching certain level?


Question

Posted

Hi.

I was wondering if it's possible that once a player has reached for example level 16, a dialogue pops up with a menu.

Shouldn't be clickable, and should occur on any map.

This is what I got so far:


prontera,153,193,6 script NPC -1,{
if(BaseLevel > 15 || BaseLevel < 17);
mes "You've reached level 16.";
close;
 }

Help very much appreciated.

2 answers to this question

Recommended Posts

Posted (edited)


- script Level_UP -,{
OnPCBaseLvUpEvent:
if(BaseLevel == 5) getitem 501,1; mes "test"; close; 
elseif(BaseLevel == 60) getitem 501,1; mes "test"; close;
elseif(BaseLevel == 70) getitem 501,1; mes "test"; close;
elseif(BaseLevel == 80) getitem 501,1; mes "test"; close;
elseif(BaseLevel == 99) getitem 501,1; mes "test"; close;
}

Try this...

Edited by Cuspid
Posted

@Cuspid: That's not anything he asked for, don't copy/paste irrelevant code without reading it.

The event "OnPCBaseLvUpEvent" triggers each time a player levels up. Also, never put a semicolon after a conditional (if, while, for).

-	script	NPC	-1,{
OnPCBaseLvUpEvent:
if(BaseLevel == 16) {
	mes "You've reached level 16.";
	close;
}
   end;
}

  • Upvote 1

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.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...