Jump to content
  • 0

Warp with Messages


ToiletMaster

Question


  • Group:  Members
  • Topic Count:  76
  • Topics Per Day:  0.02
  • Content Count:  276
  • Reputation:   7
  • Joined:  08/11/12
  • Last Seen:  

Hi guys,

 

currently i'm using npc sprite 45 warp to act as a "special warp" that requires people to have certain conditions then only they can pass.

 

Here's what i've done so far, there's no error coming out from the mapserver but the NPC does nothing, my character would move around the warp npc and nothing else. no messages nor warp after passing the requirements

 

 

lunette,28,98,0    script    lun002    45,{
OnTouch:
    if (BaseLevel < 100) {
    mes "I need to be level 100 and above";
    close; }
    else {
    warp "lunette_in",21,12;
    end; }
    }
Edited by ToiletMaster
Link to comment
Share on other sites

2 answers to this question

Recommended Posts


  • Group:  Developer
  • Topic Count:  10
  • Topics Per Day:  0.00
  • Content Count:  2407
  • Reputation:   613
  • Joined:  07/05/12
  • Last Seen:  

Use triggers (no need OnTouch for NPC ID 45 with triggers)

 

prontera,160,180,0	script	lun002	45,2,2,{
	if (BaseLevel < 100)
		mes "I need to be level 100 and above";
	else
		warp "prontera",21,12;
	close;
}
Edited by Capuche
  • Upvote 1
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  76
  • Topics Per Day:  0.02
  • Content Count:  276
  • Reputation:   7
  • Joined:  08/11/12
  • Last Seen:  

lol, i was just about to say about the 2,2 xD

 

Thanks! This worked! Tested and works greatly!

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