I would like to make a locked chest, guarded by 3 mobs, after all of them get killed, the chest unlocks himself, then after 10 min selfdeletes.


Then after min/max delay, everything respawn again.


Code:
MetalChest/Movable/False/Locked/True/Name/Locked Treasure!/LiftOverride/True/Hue/1904/ADD/Gold:MX=1:SB=1:RT=0:TO=0:KL=0:RK=0:CA=0:DN=-1:DX=-1:SP=1:PR=-1:OBJ=Mongbat/Name/Guardian Thing:MX=3:SB=2:RT=0:TO=0:KL=0:RK=0:CA=0:DN=9999:DX=9999:SP=3:PR=-1:OBJ=IF/GETONTHIS,CurrentCount=1/4:MX=1:SB=2:RT=0:TO=0:KL=0:RK=0:CA=0:DN=-1:DX=-1:SP=1:PR=-1:OBJ=GOTO/2:MX=1:SB=3:RT=0:TO=0:KL=0:RK=0:CA=0:DN=-1:DX=-1:SP=1:PR=-1:OBJ=SETONSPAWN,1/Locked/False/Hue/1163/Name/Treasure!/MSG/*click*:MX=1:SB=4:RT=0:TO=0:KL=0:RK=0:CA=0:DN=-1:DX=-1:SP=1:PR=-1:OBJ=WAITUNTIL,0.1:MX=1:SB=4:RT=0:TO=0:KL=0:RK=0:CA=0:DN=-1:DX=-1:SP=1:PR=-1:OBJ=GOTO/5:MX=1:SB=4:RT=0:TO=0:KL=0:RK=0:CA=0:DN=-1:DX=-1:SP=1:PR=-1:OBJ=SETONSPAWN,1/DELETE:MX=1:SB=5:RT=0:TO=0:KL=0:RK=0:CA=0:DN=-1:DX=-1:SP=1:PR=-1:OBJ=:MX=0:SB=0:RT=0:TO=0:KL=0:RK=0:CA=0:DN=-1:DX=-1:SP=0:PR=-1:OBJ=:MX=0:SB=0:RT=0:TO=0:KL=0:RK=0:CA=0:DN=-1:DX=-1:SP=0:PR=-1

Sorry for the mess
 
This question put me in mind of the Prisoner Camp script. Pretty close to what you're looking to do. You may decide to use it as is or take bits from it and make it your own. Hope this helps
 

Attachments

  • [ServUO.com]-PrisonerCamp.cs
    4.8 KB · Views: 10
This question put me in mind of the Prisoner Camp script. Pretty close to what you're looking to do. You may decide to use it as is or take bits from it and make it your own. Hope this helps

Thanks! i remember you from runuo forums :)


BTW how prisoner camp work? i killed the rats around, the chest seems trapped and thers a npc inside a jail. Wheres the key to unlock the jail?
 
Last edited:
Back