Jump to content
  • 0

guild master map


VladimirCastro

Question


  • Group:  Members
  • Topic Count:  114
  • Topics Per Day:  0.02
  • Content Count:  298
  • Reputation:   4
  • Joined:  03/13/12
  • Last Seen:  

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


  • Group:  Members
  • Topic Count:  72
  • Topics Per Day:  0.02
  • Content Count:  2997
  • Reputation:   1132
  • Joined:  05/27/12
  • Last Seen:  

if (getcastledata("prtg_cas01",1) == getcharid(2) && strcharinfo(0) == getguildmaster(getcharid(2))) warp map,x,y; end;

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  114
  • Topics Per Day:  0.02
  • Content Count:  298
  • Reputation:   4
  • Joined:  03/13/12
  • Last Seen:  

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

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  30
  • Topics Per Day:  0.01
  • Content Count:  782
  • Reputation:   82
  • Joined:  01/01/12
  • Last Seen:  

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

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  114
  • Topics Per Day:  0.02
  • Content Count:  298
  • Reputation:   4
  • Joined:  03/13/12
  • Last Seen:  

nothings happen i cant even click the npc whats wrong?

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  30
  • Topics Per Day:  0.01
  • Content Count:  782
  • Reputation:   82
  • Joined:  01/01/12
  • Last Seen:  

Remove the else {

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  114
  • Topics Per Day:  0.02
  • Content Count:  298
  • Reputation:   4
  • Joined:  03/13/12
  • Last Seen:  

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;

}

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  72
  • Topics Per Day:  0.02
  • Content Count:  2997
  • Reputation:   1132
  • Joined:  05/27/12
  • Last Seen:  

Tabs.

animeresort,159,199,4    script    Royal Room    757,{

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  114
  • Topics Per Day:  0.02
  • Content Count:  298
  • Reputation:   4
  • Joined:  03/13/12
  • Last Seen:  

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;

}

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  81
  • Topics Per Day:  0.02
  • Content Count:  1654
  • Reputation:   583
  • Joined:  08/09/12
  • Last Seen:  

Check if you have those maps in your client and server's map index (animeresort & royal_room3)

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  69
  • Topics Per Day:  0.01
  • Content Count:  592
  • Reputation:   31
  • Joined:  11/14/11
  • Last Seen:  

Check if your the guild owner of that castle prt cas 01 :)

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  114
  • Topics Per Day:  0.02
  • Content Count:  298
  • Reputation:   4
  • Joined:  03/13/12
  • Last Seen:  

yes it is the owner of the guild

heres the error please check it

post-3084-0-22605400-1351193847_thumb.jpg

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  30
  • Topics Per Day:  0.01
  • Content Count:  782
  • Reputation:   82
  • Joined:  01/01/12
  • Last Seen:  

Do royalroom3 map exist in ur server?

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  72
  • Topics Per Day:  0.02
  • Content Count:  2997
  • Reputation:   1132
  • Joined:  05/27/12
  • Last Seen:  

warp "royal_room3",101,155; // <-- missing quotes

Link to comment
Share on other sites

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.

×
×
  • Create New...