Limestone Posted April 26, 2012 Posted April 26, 2012 i want to request a script that checks a item b4 entering a map.. if the player does not have this item.. he cannot warp on that map.. thank you.. Quote
QQfoolsorellina Posted April 26, 2012 Posted April 26, 2012 (edited) thats not what i mean.. for example.. instance ticket.. if a player have this item.. can access a dungeon.. but if the player does not have this item.. he cant go that dungeon.. sorry for bad english.. if(!countitem(itemid)){ mes "you don't have ticket!" close; } Edited April 26, 2012 by QQfoolsorellina Quote
1 QQfoolsorellina Posted April 26, 2012 Posted April 26, 2012 (edited) if(!countitem(itemid)) close; Edited April 26, 2012 by QQfoolsorellina Quote
Limestone Posted April 26, 2012 Author Posted April 26, 2012 thats not what i mean.. for example.. instance ticket.. if a player have this item.. can access a dungeon.. but if the player does not have this item.. he cant go that dungeon.. sorry for bad english.. Quote
exneval Posted April 26, 2012 Posted April 26, 2012 (edited) if (countitem(itemid)) { mes "You can not go to this dungeon"; close; } warp "map_area",0,0; Edited April 26, 2012 by exneval Quote
Limestone Posted April 27, 2012 Author Posted April 27, 2012 thanks! :> how about in warp npc.. if the player step down on warps.. the warp checks the item.. Quote
Brian Posted April 27, 2012 Posted April 27, 2012 The code snippet that QQfoolsorellina and exneval posted is what you put in your warper. If you are not sure where in the script to add it, post your warper script here and we'll help. Quote
Question
Limestone
i want to request a script that checks a item b4 entering a map.. if the player does not have this item.. he cannot warp on that map..
thank you..
6 answers to this question
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.