Jump to content
  • 0

A Warp Portal with Script


SlashGeeGee

Question


  • Group:  Members
  • Topic Count:  111
  • Topics Per Day:  0.02
  • Content Count:  573
  • Reputation:   20
  • Joined:  11/19/11
  • Last Seen:  

Hello rA . i tried to script a warp portal with a countitem and warp script but it doesn't work when i run it it says npc_paresefile error or

if (countitem(7179) < 5)

Here's my script btw :


prontera,133,183,0 warp prt03 2,2,prt_in,50,105
if (countitem(7179) < 5)
warp "prt_in",28,169;
} else {
warp "SavePoint",0,0;
dispbottom "You Need 5 Proof of Donation to enter this Warp.";
}
end;
}

Thanks for Helping :D

SlashGeeGee

Edited by SlashGeeGee
Link to comment
Share on other sites

6 answers to this question

Recommended Posts

  • 1

  • Group:  Members
  • Topic Count:  22
  • Topics Per Day:  0.00
  • Content Count:  764
  • Reputation:   220
  • Joined:  11/14/11
  • Last Seen:  

That's because warp type NPCs can't have a script.

Use a normal NPC with spriteID 45.

prontera,133,183,0 script warp#123 45,2,2,{
if (countitem(7179) < 5)
 warp "prt_in",28,169;
else
{
 warp "SavePoint",0,0;
 dispbottom "You Need 5 Proof of Donation to enter this Warp.";
}
end;
}

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  111
  • Topics Per Day:  0.02
  • Content Count:  573
  • Reputation:   20
  • Joined:  11/19/11
  • Last Seen:  

That's because warp type NPCs can't have a script.

Use a normal NPC with spriteID 45.

prontera,133,183,0 script warp#123 45,2,2,{
if (countitem(7179) < 5)
 warp "prt_in",28,169;
else
{
 warp "SavePoint",0,0;
 dispbottom "You Need 5 Proof of Donation to enter this Warp.";
}
end;
}

Thanks does this include the exit ?

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  111
  • Topics Per Day:  0.02
  • Content Count:  573
  • Reputation:   20
  • Joined:  11/19/11
  • Last Seen:  

so i'll make a exit like this :

prt_in.gat,50,105,0 warp exit 2,2,prontera_in.gat,136,186

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  14
  • Topics Per Day:  0.00
  • Content Count:  351
  • Reputation:   52
  • Joined:  11/15/11
  • Last Seen:  

yep, that'll do. although you don't need to add those .gat..

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  111
  • Topics Per Day:  0.02
  • Content Count:  573
  • Reputation:   20
  • Joined:  11/19/11
  • Last Seen:  

yep, that'll do. although you don't need to add those .gat..

Thanks Nameless2you and Kenpachi . Solved /no1

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