Jump to content
  • 0

Dialogue pop up when reaching certain level?


HristDead

Question


  • Group:  Members
  • Topic Count:  66
  • Topics Per Day:  0.01
  • Content Count:  167
  • Reputation:   2
  • Joined:  08/01/12
  • Last Seen:  

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.

Link to comment
Share on other sites

2 answers to this question

Recommended Posts


  • Group:  Members
  • Topic Count:  75
  • Topics Per Day:  0.02
  • Content Count:  231
  • Reputation:   9
  • Joined:  12/16/11
  • Last Seen:  


- 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
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  72
  • Topics Per Day:  0.02
  • Content Count:  2997
  • Reputation:   1132
  • Joined:  05/27/12
  • Last Seen:  

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