Jump to content

Question

Posted (edited)

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

6 answers to this question

Recommended Posts

  • 1
Posted

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;
}

Posted

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 ?

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