Jump to content
  • 0

Mapwarp back to town after killing monster. Please help.


HristDead

Question


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

i'll put in short what I'm looking for...

1) there will be a monster in this map, as soon as the monster dies all the players on that map will be warped back to the save point.

Um, thats most info i can give. Sorry for being newbie at scripting... help much appreciated!! ^^;

This is what i got so far but its not work...

- script something -1,{
OnInit:
sleep2 3000;
monster "prontera",0,0,"Dark Valkyrie",1931,1;
end;

OnNPCKillEvent:
if(killedrid!=1931);
mapannounce "prontera","Dark Valkyrie: I have lost... how could this happen...?",0;
sleep2 3000;
  mapwarp "prontera","Lacie",156,72;
  end;
}

Edited by HristDead
Link to comment
Share on other sites

3 answers to this question

Recommended Posts


  • Group:  Members
  • Topic Count:  5
  • Topics Per Day:  0.00
  • Content Count:  341
  • Reputation:   43
  • Joined:  01/10/12
  • Last Seen:  

- script something -1,{
OnInit:
sleep 3000;
monster "prontera",0,0,"Dark Valkyrie",1931,1,strnpcinfo(0)+"OnMobDead";
end;
OnMobDead:
mapannounce "prontera","Dark Valkyrie: I have lost... how could this happen...?",0;
sleep 3000;
mapwarp "prontera","Lacie",156,72;
end;
}

Edited by Joseph
Thanks Emistry. D:
Link to comment
Share on other sites


  • Group:  Forum Moderator
  • Topic Count:  93
  • Topics Per Day:  0.02
  • Content Count:  10015
  • Reputation:   2348
  • Joined:  10/28/11
  • Last Seen:  

monster ......................strnpcinfo(0)+"::OnMobDead";

Link to comment
Share on other sites


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

Thanks! That worked! :)

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