- 0
	
		 Sign in to follow this  
	
	
	
		
		
			Followers
			0
		
	
How to do this? Don't allow @load to this town for non-castle owners
				
				
					Asked by 
Helena
				
				
				
			
- 
Recently Browsing 0 membersNo registered users viewing this page. 
 

Hello all.
I have a request to ask. The idea is pretty simple, I am using a shared guild town for players that are victors of the war of emperium, i want to initiate a few checks, but im not sure how to merge them.
1) no one can @load if WoE is active
2) if woe is not active only guild possessors can @load.
This is what I got so far, it works (1) but I dont know how to initiate (2) the castle owners only warp. I thought i figured it out, but unfortunately it isn't working. Players who are not in a guild or in a guild that doesnt own the castle, can still warp inside.
What did i miss? Thanks a lot for the help! ^^
- script SiegeWarp -1,{OnInit: setmapflag "guildtown", mf_loadevent; set .map_list$, "guildtown"; end; OnPCLoadMapEvent:if ( compare( .map_list$,strcharinfo(3) ) == 0 ) end; if(agitcheck()){ dispbottom "you can not warp into the War Town map while the War of Emperium is active"; SavePoint "prontera",156,184; warp "prontera",156,184; end; if (getcharid(2) != 0 && getcharid(2) == getcastledata("prtg_cas01",1)) { warp "guildtown",91,102; end;}if (getcharid(2) != 0 && getcharid(2) == getcastledata("payg_cas01",1)) { warp "guildtown",91,102; end;}if (getcharid(2) != 0 && getcharid(2) == getcastledata("aldeg_cas04",1)) { warp "guildtown",91,102; end;}if (getcharid(2) != 0 && getcharid(2) == getcastledata("gefg_cas04",1)) { warp "guildtown",91,102; end;} dispbottom "you can only enter this map if you are in one of the Guilds that hold a castle!"; sleep2 1000; atcommand "@refresh"; end; }}Share this post
Link to post
Share on other sites