I saw a reply on this post about having a guild registration npc.
What does this NPC do exactly?
1. Only admins (GM Level 99) can access this npc.
2. Guilds can be registered for WoE SE Castles (Arunafeltz and Schwarzwald) by admins manually.
3. Checks if a guild is registered or not, if not they will be warped out.
4. Admins can set how many "online members" a guild is allowed to enter the castle, if the "online members" are more than the setting, the guild cannot enter the castle.
I read Stolao's reply but I don't know how to make this script, I've only just begun basic scripting.
I'm also using a script that warps people outside the castle if they don't have a guild.
Here's the script I'm using (I've only added the castle that I'm using [schg_cas03 viblainn])
- script CastleBlocker -1,{
OnInit:
// Add more castle maps here:
setarray .map$,"prtg_cas01","prtg_cas02","prtg_cas03","prtg_cas04","prtg_cas05","schg_cas03";
set .map_size,getarraysize(.map$);
for (.@i = 0; .@i < .map_size; .@i++)
setmapflag .map$[.@i],mf_loadevent;
end;
OnPCLoadMapEvent:
for (.@i = 0; .@i < .map_size; .@i++)
if (strcharinfo(3) == .map$[.@i]) {
if(!getcharid(2)) {
mes "Sorry, you are not in a guild!";
close2;
warp "[email protected]<script data-cfhash='f9e31' type="text/javascript">/* */</script>",194,208;
}
break;
}
end;
}
Question
Zaon
Hello,
I saw a reply on this post about having a guild registration npc.
What does this NPC do exactly?
1. Only admins (GM Level 99) can access this npc.
2. Guilds can be registered for WoE SE Castles (Arunafeltz and Schwarzwald) by admins manually.
3. Checks if a guild is registered or not, if not they will be warped out.
4. Admins can set how many "online members" a guild is allowed to enter the castle, if the "online members" are more than the setting, the guild cannot enter the castle.
I read Stolao's reply but I don't know how to make this script, I've only just begun basic scripting.
I'm also using a script that warps people outside the castle if they don't have a guild.
Here's the script I'm using (I've only added the castle that I'm using [schg_cas03 viblainn])
Thanks to anyone who will try to help
Link to comment
Share on other sites
5 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.