Limestone Posted April 26, 2012 Group: Members Topic Count: 155 Topics Per Day: 0.03 Content Count: 647 Reputation: 16 Joined: 11/21/11 Last Seen: December 28, 2022 Share 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 Link to comment Share on other sites More sharing options...
QQfoolsorellina Posted April 26, 2012 Group: Members Topic Count: 40 Topics Per Day: 0.01 Content Count: 587 Reputation: 105 Joined: 11/19/11 Last Seen: July 7, 2019 Share 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 Link to comment Share on other sites More sharing options...
1 QQfoolsorellina Posted April 26, 2012 Group: Members Topic Count: 40 Topics Per Day: 0.01 Content Count: 587 Reputation: 105 Joined: 11/19/11 Last Seen: July 7, 2019 Share Posted April 26, 2012 (edited) if(!countitem(itemid)) close; Edited April 26, 2012 by QQfoolsorellina Quote Link to comment Share on other sites More sharing options...
Limestone Posted April 26, 2012 Group: Members Topic Count: 155 Topics Per Day: 0.03 Content Count: 647 Reputation: 16 Joined: 11/21/11 Last Seen: December 28, 2022 Author Share 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 Link to comment Share on other sites More sharing options...
exneval Posted April 26, 2012 Group: Members Topic Count: 3 Topics Per Day: 0.00 Content Count: 164 Reputation: 12 Joined: 01/03/12 Last Seen: November 18, 2019 Share 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 Link to comment Share on other sites More sharing options...
Limestone Posted April 27, 2012 Group: Members Topic Count: 155 Topics Per Day: 0.03 Content Count: 647 Reputation: 16 Joined: 11/21/11 Last Seen: December 28, 2022 Author Share Posted April 27, 2012 thanks! :> how about in warp npc.. if the player step down on warps.. the warp checks the item.. Quote Link to comment Share on other sites More sharing options...
Brian Posted April 27, 2012 Group: Members Topic Count: 75 Topics Per Day: 0.02 Content Count: 2223 Reputation: 593 Joined: 10/26/11 Last Seen: June 2, 2018 Share 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 Link to comment Share on other sites More sharing options...
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..
Link to comment
Share on other sites
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.