ejieswak1453 Posted November 19, 2013 Group: Members Topic Count: 14 Topics Per Day: 0.00 Content Count: 39 Reputation: 0 Joined: 10/31/13 Last Seen: March 4, 2014 Share Posted November 19, 2013 (edited) I need a script that whenever a player or guild go to a town before he/she can go to that specific location they need to finish some requirements first Example town :aldebaran requirements Pencil case- 738 Thank YOU Edited November 19, 2013 by ejieswak1453 Quote Link to comment Share on other sites More sharing options...
nobukadnezar Posted November 19, 2013 Group: Members Topic Count: 35 Topics Per Day: 0.01 Content Count: 163 Reputation: 7 Joined: 01/07/12 Last Seen: March 7, 2017 Share Posted November 19, 2013 try - script ItemRequirement -1,{ OnPCLoadMapEvent: set .@canpass,0; getinventorylist; for(set .@i,0; .@i < @inventorylist_count; set .@i,.@i+1){ if(@inventorylist_id[.@i] == 738) set .@canpass,1; } if(!.@canpass){ dispbottom "You dont have required item."; warp "savepoint",0,0; } } aldebaran mapflag loadevent Quote Link to comment Share on other sites More sharing options...
ejieswak1453 Posted November 19, 2013 Group: Members Topic Count: 14 Topics Per Day: 0.00 Content Count: 39 Reputation: 0 Joined: 10/31/13 Last Seen: March 4, 2014 Author Share Posted November 19, 2013 not working Quote Link to comment Share on other sites More sharing options...
nobukadnezar Posted November 19, 2013 Group: Members Topic Count: 35 Topics Per Day: 0.01 Content Count: 163 Reputation: 7 Joined: 01/07/12 Last Seen: March 7, 2017 Share Posted November 19, 2013 change warp "savepoint",0,0; to atcommand "@load"; Quote Link to comment Share on other sites More sharing options...
Patskie Posted November 19, 2013 Group: Members Topic Count: 50 Topics Per Day: 0.01 Content Count: 1702 Reputation: 241 Joined: 09/05/12 Last Seen: 5 hours ago Share Posted November 19, 2013 http://pastebin.com/raw.php?i=W1X2p7u8 Quote Link to comment Share on other sites More sharing options...
nobukadnezar Posted November 19, 2013 Group: Members Topic Count: 35 Topics Per Day: 0.01 Content Count: 163 Reputation: 7 Joined: 01/07/12 Last Seen: March 7, 2017 Share Posted November 19, 2013 ah yeah just use countitem(738) lol Quote Link to comment Share on other sites More sharing options...
ejieswak1453 Posted November 20, 2013 Group: Members Topic Count: 14 Topics Per Day: 0.00 Content Count: 39 Reputation: 0 Joined: 10/31/13 Last Seen: March 4, 2014 Author Share Posted November 20, 2013 Thanks Quote Link to comment Share on other sites More sharing options...
Question
ejieswak1453
I need a script that whenever a player or guild go to a town before he/she can go to that specific location they need to finish some requirements first
Example town :aldebaran
requirements Pencil case- 738
Thank YOU
Edited by ejieswak1453Link 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.