rendered paste bodydef chest_game(st,command) :
#northern point
x,y,z=102000,103350,-3500
#row dist,slope,col dist
u,v,w=200,100,200
if command == "start" :
leader(st).set("chest_game","1")
leader(st).set("chest_count","0")
attempts = int(leader(st).get("chest_try"))
leader(st).set("chest_try",str(attempts+1))
randomize_chests(st)
for row in range(4) :
for col in range(4) :
leader(st).getPcSpawn().addSpawn(1042+(4*row+col),x+(row*u)+(col*v),y-(w*col),z,60000)
leader(st).startQuestTimer("chest_timer",60000)
elif command == "stop" :
leader(st).getPcSpawn().removeAllSpawn()
leader(st).set("chest_game","0")