Good day, I added a shortcut in the warper to go guild dungeons, I want limit this only to the respective casttle owners.
But my script is ignoring the castle owner condition, and everyone can warp too, I want to avoid this,
could you lendme a hand to fix this?
Rachgd:
if (getcharid(2) != 0 && getcharid(2) == getcastledata("arug_cas01",1)) goto chek2;
Go("arug_dun01",200,36);
chek2:
if (getcharid(2) != 0 && getcharid(2) == getcastledata("arug_cas02",1)) goto chek3;
Go("arug_dun01",200,36);
chek3:
if (getcharid(2) != 0 && getcharid(2) == getcastledata("arug_cas03",1)) goto chek4;
Go("arug_dun01",200,36);
chek4:
if (getcharid(2) != 0 && getcharid(2) == getcastledata("arug_cas04",1)) goto chek5;
Go("arug_dun01",200,36);
chek5:
if (getcharid(2) != 0 && getcharid(2) == getcastledata("arug_cas05",1)) goto Falta;
Go("arug_dun01",200,36);
Falta:
mes "^0000FFAgente Warp^000000";
cutin "jpn_mid03",2;
mes "You are not an owner of any Arunafeltz Rachel Casttle, or member of any guild who owns one.";
next;
mes "^0000FFAgente Warp^000000";
mes "Conquest an Arunafeltz casttle in Rachel, or join a guild who owns one in order to access!";
close3;
Question
iraciz
Good day, I added a shortcut in the warper to go guild dungeons, I want limit this only to the respective casttle owners.
But my script is ignoring the castle owner condition, and everyone can warp too, I want to avoid this,
could you lendme a hand to fix this?
Rachgd: if (getcharid(2) != 0 && getcharid(2) == getcastledata("arug_cas01",1)) goto chek2; Go("arug_dun01",200,36); chek2: if (getcharid(2) != 0 && getcharid(2) == getcastledata("arug_cas02",1)) goto chek3; Go("arug_dun01",200,36); chek3: if (getcharid(2) != 0 && getcharid(2) == getcastledata("arug_cas03",1)) goto chek4; Go("arug_dun01",200,36); chek4: if (getcharid(2) != 0 && getcharid(2) == getcastledata("arug_cas04",1)) goto chek5; Go("arug_dun01",200,36); chek5: if (getcharid(2) != 0 && getcharid(2) == getcastledata("arug_cas05",1)) goto Falta; Go("arug_dun01",200,36); Falta: mes "^0000FFAgente Warp^000000"; cutin "jpn_mid03",2; mes "You are not an owner of any Arunafeltz Rachel Casttle, or member of any guild who owns one."; next; mes "^0000FFAgente Warp^000000"; mes "Conquest an Arunafeltz casttle in Rachel, or join a guild who owns one in order to access!"; close3;
Link to comment
Share on other sites
7 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.