VladimirCastro Posted October 15, 2012 Group: Members Topic Count: 114 Topics Per Day: 0.02 Content Count: 298 Reputation: 4 Joined: 03/13/12 Last Seen: September 18, 2016 Share Posted October 15, 2012 hello. i need script that for example only guild master of kriemhild can enter that map?. how can i do that? Quote Link to comment Share on other sites More sharing options...
Euphy Posted October 15, 2012 Group: Members Topic Count: 72 Topics Per Day: 0.02 Content Count: 2997 Reputation: 1132 Joined: 05/27/12 Last Seen: June 1, 2017 Share Posted October 15, 2012 if (getcastledata("prtg_cas01",1) == getcharid(2) && strcharinfo(0) == getguildmaster(getcharid(2))) warp map,x,y; end; Quote Link to comment Share on other sites More sharing options...
VladimirCastro Posted October 24, 2012 Group: Members Topic Count: 114 Topics Per Day: 0.02 Content Count: 298 Reputation: 4 Joined: 03/13/12 Last Seen: September 18, 2016 Author Share Posted October 24, 2012 animeresort,159,199,4 script Royal Room 757,{if (getcastledata("prtg_cas01",1) == getcharid(2) && strcharinfo(0) == getguildmaster(getcharid(2))) warp royal_room3,101,155; end; } i did like that but how can add something like If Not. Your not allowed to enter here only blah blah blah can enter here Quote Link to comment Share on other sites More sharing options...
GM Takumirai Posted October 24, 2012 Group: Members Topic Count: 69 Topics Per Day: 0.01 Content Count: 592 Reputation: 31 Joined: 11/14/11 Last Seen: July 29, 2015 Share Posted October 24, 2012 put else Quote Link to comment Share on other sites More sharing options...
Bin4ry Posted October 24, 2012 Group: Members Topic Count: 30 Topics Per Day: 0.01 Content Count: 782 Reputation: 82 Joined: 01/01/12 Last Seen: September 21, 2015 Share Posted October 24, 2012 animeresort,159,199,4 script Royal Room 757,{ if (getcastledata("prtg_cas01",1) == getcharid(2) && strcharinfo(0) == getguildmaster(getcharid(2))) warp royal_room3,101,155; end; } else { mes "You are not allowed!"; close; } Quote Link to comment Share on other sites More sharing options...
VladimirCastro Posted October 24, 2012 Group: Members Topic Count: 114 Topics Per Day: 0.02 Content Count: 298 Reputation: 4 Joined: 03/13/12 Last Seen: September 18, 2016 Author Share Posted October 24, 2012 nothings happen i cant even click the npc whats wrong? Quote Link to comment Share on other sites More sharing options...
Bin4ry Posted October 24, 2012 Group: Members Topic Count: 30 Topics Per Day: 0.01 Content Count: 782 Reputation: 82 Joined: 01/01/12 Last Seen: September 21, 2015 Share Posted October 24, 2012 Remove the else { Quote Link to comment Share on other sites More sharing options...
VladimirCastro Posted October 24, 2012 Group: Members Topic Count: 114 Topics Per Day: 0.02 Content Count: 298 Reputation: 4 Joined: 03/13/12 Last Seen: September 18, 2016 Author Share Posted October 24, 2012 ive tried to just make it like this. still doesnt work? i cant even click it. animeresort,159,199,4 script Royal Room 757,{ if (getcastledata("prtg_cas01",1) == getcharid(2) && strcharinfo(0) == getguildmaster(getcharid(2))) warp royal_room3,101,155; end; } Quote Link to comment Share on other sites More sharing options...
Euphy Posted October 24, 2012 Group: Members Topic Count: 72 Topics Per Day: 0.02 Content Count: 2997 Reputation: 1132 Joined: 05/27/12 Last Seen: June 1, 2017 Share Posted October 24, 2012 Tabs. animeresort,159,199,4 script Royal Room 757,{ Quote Link to comment Share on other sites More sharing options...
VladimirCastro Posted October 24, 2012 Group: Members Topic Count: 114 Topics Per Day: 0.02 Content Count: 298 Reputation: 4 Joined: 03/13/12 Last Seen: September 18, 2016 Author Share Posted October 24, 2012 well i did it has tab maybe theres something rong with this? if (getcastledata("prtg_cas01",1) == getcharid(2) && strcharinfo(0) == getguildmaster(getcharid(2))) warp royal_room3,101,155; end; } Quote Link to comment Share on other sites More sharing options...
nanakiwurtz Posted October 24, 2012 Group: Members Topic Count: 81 Topics Per Day: 0.02 Content Count: 1654 Reputation: 583 Joined: 08/09/12 Last Seen: January 14, 2020 Share Posted October 24, 2012 Check if you have those maps in your client and server's map index (animeresort & royal_room3) Quote Link to comment Share on other sites More sharing options...
VladimirCastro Posted October 24, 2012 Group: Members Topic Count: 114 Topics Per Day: 0.02 Content Count: 298 Reputation: 4 Joined: 03/13/12 Last Seen: September 18, 2016 Author Share Posted October 24, 2012 ofcourse i have Quote Link to comment Share on other sites More sharing options...
GM Takumirai Posted October 24, 2012 Group: Members Topic Count: 69 Topics Per Day: 0.01 Content Count: 592 Reputation: 31 Joined: 11/14/11 Last Seen: July 29, 2015 Share Posted October 24, 2012 Check if your the guild owner of that castle prt cas 01 Quote Link to comment Share on other sites More sharing options...
VladimirCastro Posted October 25, 2012 Group: Members Topic Count: 114 Topics Per Day: 0.02 Content Count: 298 Reputation: 4 Joined: 03/13/12 Last Seen: September 18, 2016 Author Share Posted October 25, 2012 yes it is the owner of the guild heres the error please check it Quote Link to comment Share on other sites More sharing options...
Bin4ry Posted October 25, 2012 Group: Members Topic Count: 30 Topics Per Day: 0.01 Content Count: 782 Reputation: 82 Joined: 01/01/12 Last Seen: September 21, 2015 Share Posted October 25, 2012 Do royalroom3 map exist in ur server? Quote Link to comment Share on other sites More sharing options...
VladimirCastro Posted October 25, 2012 Group: Members Topic Count: 114 Topics Per Day: 0.02 Content Count: 298 Reputation: 4 Joined: 03/13/12 Last Seen: September 18, 2016 Author Share Posted October 25, 2012 yes i can even warp there. Quote Link to comment Share on other sites More sharing options...
Euphy Posted October 25, 2012 Group: Members Topic Count: 72 Topics Per Day: 0.02 Content Count: 2997 Reputation: 1132 Joined: 05/27/12 Last Seen: June 1, 2017 Share Posted October 25, 2012 warp "royal_room3",101,155; // <-- missing quotes Quote Link to comment Share on other sites More sharing options...
VladimirCastro Posted October 25, 2012 Group: Members Topic Count: 114 Topics Per Day: 0.02 Content Count: 298 Reputation: 4 Joined: 03/13/12 Last Seen: September 18, 2016 Author Share Posted October 25, 2012 thhanks it works! Quote Link to comment Share on other sites More sharing options...
Question
VladimirCastro
hello. i need script that for example only guild master of kriemhild can enter that map?. how can i do that?
Link to comment
Share on other sites
17 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.