diff options
Diffstat (limited to 'world/map/npc')
-rw-r--r-- | world/map/npc/099-8/expchest.txt | 2228 | ||||
-rw-r--r-- | world/map/npc/functions/pandora_box_chests.txt | 144 | ||||
-rw-r--r-- | world/map/npc/scripts.conf | 1 |
3 files changed, 173 insertions, 2200 deletions
diff --git a/world/map/npc/099-8/expchest.txt b/world/map/npc/099-8/expchest.txt index 2a2da1d9..6d4386a0 100644 --- a/world/map/npc/099-8/expchest.txt +++ b/world/map/npc/099-8/expchest.txt @@ -1,2201 +1,29 @@ -// This file is generated automatically. -099-8,373,128,0|script|EXP Chest#00|111 -{ - // Default distance is 4 tiles - all we need - callfunc "PCtoNPCRange"; - if(@npc_check) end; - - if ($DD5A_EXPCHEST$[0] != "") goto L_Claimed; - if (#DD5A_EXPCHEST > 10) goto L_Greedy; - mes "(You are the first player to open this chest! THE POWER IS NOW YOURS.)"; - set $DD5A_EXPCHEST$[0], strcharinfo(0); - set #DD5A_EXPCHEST, #DD5A_EXPCHEST+1; - getexp 200000, 10000; - close; - -L_Greedy: - mes "Don't be greedy, let someone else open them, too!"; - close; - -L_Claimed: - mes "Sorry, but "+$DD5A_EXPCHEST$[0]+" got here first!"; - close; -} -099-8,280,208,0|script|EXP Chest#01|111 -{ - // Default distance is 4 tiles - all we need - callfunc "PCtoNPCRange"; - if(@npc_check) end; - - if ($DD5A_EXPCHEST$[1] != "") goto L_Claimed; - if (#DD5A_EXPCHEST > 10) goto L_Greedy; - mes "(You are the first player to open this chest! THE POWER IS NOW YOURS.)"; - set $DD5A_EXPCHEST$[1], strcharinfo(0); - set #DD5A_EXPCHEST, #DD5A_EXPCHEST+1; - getexp 200000, 10000; - close; - -L_Greedy: - mes "Don't be greedy, let someone else open them, too!"; - close; - -L_Claimed: - mes "Sorry, but "+$DD5A_EXPCHEST$[1]+" got here first!"; - close; -} -099-8,151,104,0|script|EXP Chest#02|111 -{ - // Default distance is 4 tiles - all we need - callfunc "PCtoNPCRange"; - if(@npc_check) end; - - if ($DD5A_EXPCHEST$[2] != "") goto L_Claimed; - if (#DD5A_EXPCHEST > 10) goto L_Greedy; - mes "(You are the first player to open this chest! THE POWER IS NOW YOURS.)"; - set $DD5A_EXPCHEST$[2], strcharinfo(0); - set #DD5A_EXPCHEST, #DD5A_EXPCHEST+1; - getexp 200000, 10000; - close; - -L_Greedy: - mes "Don't be greedy, let someone else open them, too!"; - close; - -L_Claimed: - mes "Sorry, but "+$DD5A_EXPCHEST$[2]+" got here first!"; - close; -} -099-8,233,374,0|script|EXP Chest#03|111 -{ - // Default distance is 4 tiles - all we need - callfunc "PCtoNPCRange"; - if(@npc_check) end; - - if ($DD5A_EXPCHEST$[3] != "") goto L_Claimed; - if (#DD5A_EXPCHEST > 10) goto L_Greedy; - mes "(You are the first player to open this chest! THE POWER IS NOW YOURS.)"; - set $DD5A_EXPCHEST$[3], strcharinfo(0); - set #DD5A_EXPCHEST, #DD5A_EXPCHEST+1; - getexp 200000, 10000; - close; - -L_Greedy: - mes "Don't be greedy, let someone else open them, too!"; - close; - -L_Claimed: - mes "Sorry, but "+$DD5A_EXPCHEST$[3]+" got here first!"; - close; -} -099-8,87,258,0|script|EXP Chest#04|111 -{ - // Default distance is 4 tiles - all we need - callfunc "PCtoNPCRange"; - if(@npc_check) end; - - if ($DD5A_EXPCHEST$[4] != "") goto L_Claimed; - if (#DD5A_EXPCHEST > 10) goto L_Greedy; - mes "(You are the first player to open this chest! THE POWER IS NOW YOURS.)"; - set $DD5A_EXPCHEST$[4], strcharinfo(0); - set #DD5A_EXPCHEST, #DD5A_EXPCHEST+1; - getexp 200000, 10000; - close; - -L_Greedy: - mes "Don't be greedy, let someone else open them, too!"; - close; - -L_Claimed: - mes "Sorry, but "+$DD5A_EXPCHEST$[4]+" got here first!"; - close; -} -099-8,67,226,0|script|EXP Chest#05|111 -{ - // Default distance is 4 tiles - all we need - callfunc "PCtoNPCRange"; - if(@npc_check) end; - - if ($DD5A_EXPCHEST$[5] != "") goto L_Claimed; - if (#DD5A_EXPCHEST > 10) goto L_Greedy; - mes "(You are the first player to open this chest! THE POWER IS NOW YOURS.)"; - set $DD5A_EXPCHEST$[5], strcharinfo(0); - set #DD5A_EXPCHEST, #DD5A_EXPCHEST+1; - getexp 200000, 10000; - close; - -L_Greedy: - mes "Don't be greedy, let someone else open them, too!"; - close; - -L_Claimed: - mes "Sorry, but "+$DD5A_EXPCHEST$[5]+" got here first!"; - close; -} -099-8,142,48,0|script|EXP Chest#06|111 -{ - // Default distance is 4 tiles - all we need - callfunc "PCtoNPCRange"; - if(@npc_check) end; - - if ($DD5A_EXPCHEST$[6] != "") goto L_Claimed; - if (#DD5A_EXPCHEST > 10) goto L_Greedy; - mes "(You are the first player to open this chest! THE POWER IS NOW YOURS.)"; - set $DD5A_EXPCHEST$[6], strcharinfo(0); - set #DD5A_EXPCHEST, #DD5A_EXPCHEST+1; - getexp 200000, 10000; - close; - -L_Greedy: - mes "Don't be greedy, let someone else open them, too!"; - close; - -L_Claimed: - mes "Sorry, but "+$DD5A_EXPCHEST$[6]+" got here first!"; - close; -} -099-8,27,93,0|script|EXP Chest#07|111 -{ - // Default distance is 4 tiles - all we need - callfunc "PCtoNPCRange"; - if(@npc_check) end; - - if ($DD5A_EXPCHEST$[7] != "") goto L_Claimed; - if (#DD5A_EXPCHEST > 10) goto L_Greedy; - mes "(You are the first player to open this chest! THE POWER IS NOW YOURS.)"; - set $DD5A_EXPCHEST$[7], strcharinfo(0); - set #DD5A_EXPCHEST, #DD5A_EXPCHEST+1; - getexp 200000, 10000; - close; - -L_Greedy: - mes "Don't be greedy, let someone else open them, too!"; - close; - -L_Claimed: - mes "Sorry, but "+$DD5A_EXPCHEST$[7]+" got here first!"; - close; -} -099-8,342,382,0|script|EXP Chest#08|111 -{ - // Default distance is 4 tiles - all we need - callfunc "PCtoNPCRange"; - if(@npc_check) end; - - if ($DD5A_EXPCHEST$[8] != "") goto L_Claimed; - if (#DD5A_EXPCHEST > 10) goto L_Greedy; - mes "(You are the first player to open this chest! THE POWER IS NOW YOURS.)"; - set $DD5A_EXPCHEST$[8], strcharinfo(0); - set #DD5A_EXPCHEST, #DD5A_EXPCHEST+1; - getexp 200000, 10000; - close; - -L_Greedy: - mes "Don't be greedy, let someone else open them, too!"; - close; - -L_Claimed: - mes "Sorry, but "+$DD5A_EXPCHEST$[8]+" got here first!"; - close; -} -099-8,163,222,0|script|EXP Chest#09|111 -{ - // Default distance is 4 tiles - all we need - callfunc "PCtoNPCRange"; - if(@npc_check) end; - - if ($DD5A_EXPCHEST$[9] != "") goto L_Claimed; - if (#DD5A_EXPCHEST > 10) goto L_Greedy; - mes "(You are the first player to open this chest! THE POWER IS NOW YOURS.)"; - set $DD5A_EXPCHEST$[9], strcharinfo(0); - set #DD5A_EXPCHEST, #DD5A_EXPCHEST+1; - getexp 200000, 10000; - close; - -L_Greedy: - mes "Don't be greedy, let someone else open them, too!"; - close; - -L_Claimed: - mes "Sorry, but "+$DD5A_EXPCHEST$[9]+" got here first!"; - close; -} -099-8,326,140,0|script|EXP Chest#10|111 -{ - // Default distance is 4 tiles - all we need - callfunc "PCtoNPCRange"; - if(@npc_check) end; - - if ($DD5A_EXPCHEST$[10] != "") goto L_Claimed; - if (#DD5A_EXPCHEST > 10) goto L_Greedy; - mes "(You are the first player to open this chest! THE POWER IS NOW YOURS.)"; - set $DD5A_EXPCHEST$[10], strcharinfo(0); - set #DD5A_EXPCHEST, #DD5A_EXPCHEST+1; - getexp 200000, 10000; - close; - -L_Greedy: - mes "Don't be greedy, let someone else open them, too!"; - close; - -L_Claimed: - mes "Sorry, but "+$DD5A_EXPCHEST$[10]+" got here first!"; - close; -} -099-8,250,273,0|script|EXP Chest#11|111 -{ - // Default distance is 4 tiles - all we need - callfunc "PCtoNPCRange"; - if(@npc_check) end; - - if ($DD5A_EXPCHEST$[11] != "") goto L_Claimed; - if (#DD5A_EXPCHEST > 10) goto L_Greedy; - mes "(You are the first player to open this chest! THE POWER IS NOW YOURS.)"; - set $DD5A_EXPCHEST$[11], strcharinfo(0); - set #DD5A_EXPCHEST, #DD5A_EXPCHEST+1; - getexp 200000, 10000; - close; - -L_Greedy: - mes "Don't be greedy, let someone else open them, too!"; - close; - -L_Claimed: - mes "Sorry, but "+$DD5A_EXPCHEST$[11]+" got here first!"; - close; -} -099-8,365,144,0|script|EXP Chest#12|111 -{ - // Default distance is 4 tiles - all we need - callfunc "PCtoNPCRange"; - if(@npc_check) end; - - if ($DD5A_EXPCHEST$[12] != "") goto L_Claimed; - if (#DD5A_EXPCHEST > 10) goto L_Greedy; - mes "(You are the first player to open this chest! THE POWER IS NOW YOURS.)"; - set $DD5A_EXPCHEST$[12], strcharinfo(0); - set #DD5A_EXPCHEST, #DD5A_EXPCHEST+1; - getexp 200000, 10000; - close; - -L_Greedy: - mes "Don't be greedy, let someone else open them, too!"; - close; - -L_Claimed: - mes "Sorry, but "+$DD5A_EXPCHEST$[12]+" got here first!"; - close; -} -099-8,108,214,0|script|EXP Chest#13|111 -{ - // Default distance is 4 tiles - all we need - callfunc "PCtoNPCRange"; - if(@npc_check) end; - - if ($DD5A_EXPCHEST$[13] != "") goto L_Claimed; - if (#DD5A_EXPCHEST > 10) goto L_Greedy; - mes "(You are the first player to open this chest! THE POWER IS NOW YOURS.)"; - set $DD5A_EXPCHEST$[13], strcharinfo(0); - set #DD5A_EXPCHEST, #DD5A_EXPCHEST+1; - getexp 200000, 10000; - close; - -L_Greedy: - mes "Don't be greedy, let someone else open them, too!"; - close; - -L_Claimed: - mes "Sorry, but "+$DD5A_EXPCHEST$[13]+" got here first!"; - close; -} -099-8,215,150,0|script|EXP Chest#14|111 -{ - // Default distance is 4 tiles - all we need - callfunc "PCtoNPCRange"; - if(@npc_check) end; - - if ($DD5A_EXPCHEST$[14] != "") goto L_Claimed; - if (#DD5A_EXPCHEST > 10) goto L_Greedy; - mes "(You are the first player to open this chest! THE POWER IS NOW YOURS.)"; - set $DD5A_EXPCHEST$[14], strcharinfo(0); - set #DD5A_EXPCHEST, #DD5A_EXPCHEST+1; - getexp 200000, 10000; - close; - -L_Greedy: - mes "Don't be greedy, let someone else open them, too!"; - close; - -L_Claimed: - mes "Sorry, but "+$DD5A_EXPCHEST$[14]+" got here first!"; - close; -} -099-8,180,374,0|script|EXP Chest#15|111 -{ - // Default distance is 4 tiles - all we need - callfunc "PCtoNPCRange"; - if(@npc_check) end; - - if ($DD5A_EXPCHEST$[15] != "") goto L_Claimed; - if (#DD5A_EXPCHEST > 10) goto L_Greedy; - mes "(You are the first player to open this chest! THE POWER IS NOW YOURS.)"; - set $DD5A_EXPCHEST$[15], strcharinfo(0); - set #DD5A_EXPCHEST, #DD5A_EXPCHEST+1; - getexp 200000, 10000; - close; - -L_Greedy: - mes "Don't be greedy, let someone else open them, too!"; - close; - -L_Claimed: - mes "Sorry, but "+$DD5A_EXPCHEST$[15]+" got here first!"; - close; -} -099-8,246,94,0|script|EXP Chest#16|111 -{ - // Default distance is 4 tiles - all we need - callfunc "PCtoNPCRange"; - if(@npc_check) end; - - if ($DD5A_EXPCHEST$[16] != "") goto L_Claimed; - if (#DD5A_EXPCHEST > 10) goto L_Greedy; - mes "(You are the first player to open this chest! THE POWER IS NOW YOURS.)"; - set $DD5A_EXPCHEST$[16], strcharinfo(0); - set #DD5A_EXPCHEST, #DD5A_EXPCHEST+1; - getexp 200000, 10000; - close; - -L_Greedy: - mes "Don't be greedy, let someone else open them, too!"; - close; - -L_Claimed: - mes "Sorry, but "+$DD5A_EXPCHEST$[16]+" got here first!"; - close; -} -099-8,244,215,0|script|EXP Chest#17|111 -{ - // Default distance is 4 tiles - all we need - callfunc "PCtoNPCRange"; - if(@npc_check) end; - - if ($DD5A_EXPCHEST$[17] != "") goto L_Claimed; - if (#DD5A_EXPCHEST > 10) goto L_Greedy; - mes "(You are the first player to open this chest! THE POWER IS NOW YOURS.)"; - set $DD5A_EXPCHEST$[17], strcharinfo(0); - set #DD5A_EXPCHEST, #DD5A_EXPCHEST+1; - getexp 200000, 10000; - close; - -L_Greedy: - mes "Don't be greedy, let someone else open them, too!"; - close; - -L_Claimed: - mes "Sorry, but "+$DD5A_EXPCHEST$[17]+" got here first!"; - close; -} -099-8,243,323,0|script|EXP Chest#18|111 -{ - // Default distance is 4 tiles - all we need - callfunc "PCtoNPCRange"; - if(@npc_check) end; - - if ($DD5A_EXPCHEST$[18] != "") goto L_Claimed; - if (#DD5A_EXPCHEST > 10) goto L_Greedy; - mes "(You are the first player to open this chest! THE POWER IS NOW YOURS.)"; - set $DD5A_EXPCHEST$[18], strcharinfo(0); - set #DD5A_EXPCHEST, #DD5A_EXPCHEST+1; - getexp 200000, 10000; - close; - -L_Greedy: - mes "Don't be greedy, let someone else open them, too!"; - close; - -L_Claimed: - mes "Sorry, but "+$DD5A_EXPCHEST$[18]+" got here first!"; - close; -} -099-8,231,279,0|script|EXP Chest#19|111 -{ - // Default distance is 4 tiles - all we need - callfunc "PCtoNPCRange"; - if(@npc_check) end; - - if ($DD5A_EXPCHEST$[19] != "") goto L_Claimed; - if (#DD5A_EXPCHEST > 10) goto L_Greedy; - mes "(You are the first player to open this chest! THE POWER IS NOW YOURS.)"; - set $DD5A_EXPCHEST$[19], strcharinfo(0); - set #DD5A_EXPCHEST, #DD5A_EXPCHEST+1; - getexp 200000, 10000; - close; - -L_Greedy: - mes "Don't be greedy, let someone else open them, too!"; - close; - -L_Claimed: - mes "Sorry, but "+$DD5A_EXPCHEST$[19]+" got here first!"; - close; -} -099-8,225,64,0|script|EXP Chest#20|111 -{ - // Default distance is 4 tiles - all we need - callfunc "PCtoNPCRange"; - if(@npc_check) end; - - if ($DD5A_EXPCHEST$[20] != "") goto L_Claimed; - if (#DD5A_EXPCHEST > 10) goto L_Greedy; - mes "(You are the first player to open this chest! THE POWER IS NOW YOURS.)"; - set $DD5A_EXPCHEST$[20], strcharinfo(0); - set #DD5A_EXPCHEST, #DD5A_EXPCHEST+1; - getexp 200000, 10000; - close; - -L_Greedy: - mes "Don't be greedy, let someone else open them, too!"; - close; - -L_Claimed: - mes "Sorry, but "+$DD5A_EXPCHEST$[20]+" got here first!"; - close; -} -099-8,310,336,0|script|EXP Chest#21|111 -{ - // Default distance is 4 tiles - all we need - callfunc "PCtoNPCRange"; - if(@npc_check) end; - - if ($DD5A_EXPCHEST$[21] != "") goto L_Claimed; - if (#DD5A_EXPCHEST > 10) goto L_Greedy; - mes "(You are the first player to open this chest! THE POWER IS NOW YOURS.)"; - set $DD5A_EXPCHEST$[21], strcharinfo(0); - set #DD5A_EXPCHEST, #DD5A_EXPCHEST+1; - getexp 200000, 10000; - close; - -L_Greedy: - mes "Don't be greedy, let someone else open them, too!"; - close; - -L_Claimed: - mes "Sorry, but "+$DD5A_EXPCHEST$[21]+" got here first!"; - close; -} -099-8,227,314,0|script|EXP Chest#22|111 -{ - // Default distance is 4 tiles - all we need - callfunc "PCtoNPCRange"; - if(@npc_check) end; - - if ($DD5A_EXPCHEST$[22] != "") goto L_Claimed; - if (#DD5A_EXPCHEST > 10) goto L_Greedy; - mes "(You are the first player to open this chest! THE POWER IS NOW YOURS.)"; - set $DD5A_EXPCHEST$[22], strcharinfo(0); - set #DD5A_EXPCHEST, #DD5A_EXPCHEST+1; - getexp 200000, 10000; - close; - -L_Greedy: - mes "Don't be greedy, let someone else open them, too!"; - close; - -L_Claimed: - mes "Sorry, but "+$DD5A_EXPCHEST$[22]+" got here first!"; - close; -} -099-8,336,312,0|script|EXP Chest#23|111 -{ - // Default distance is 4 tiles - all we need - callfunc "PCtoNPCRange"; - if(@npc_check) end; - - if ($DD5A_EXPCHEST$[23] != "") goto L_Claimed; - if (#DD5A_EXPCHEST > 10) goto L_Greedy; - mes "(You are the first player to open this chest! THE POWER IS NOW YOURS.)"; - set $DD5A_EXPCHEST$[23], strcharinfo(0); - set #DD5A_EXPCHEST, #DD5A_EXPCHEST+1; - getexp 200000, 10000; - close; - -L_Greedy: - mes "Don't be greedy, let someone else open them, too!"; - close; - -L_Claimed: - mes "Sorry, but "+$DD5A_EXPCHEST$[23]+" got here first!"; - close; -} -099-8,52,300,0|script|EXP Chest#24|111 -{ - // Default distance is 4 tiles - all we need - callfunc "PCtoNPCRange"; - if(@npc_check) end; - - if ($DD5A_EXPCHEST$[24] != "") goto L_Claimed; - if (#DD5A_EXPCHEST > 10) goto L_Greedy; - mes "(You are the first player to open this chest! THE POWER IS NOW YOURS.)"; - set $DD5A_EXPCHEST$[24], strcharinfo(0); - set #DD5A_EXPCHEST, #DD5A_EXPCHEST+1; - getexp 200000, 10000; - close; - -L_Greedy: - mes "Don't be greedy, let someone else open them, too!"; - close; - -L_Claimed: - mes "Sorry, but "+$DD5A_EXPCHEST$[24]+" got here first!"; - close; -} -099-8,38,327,0|script|EXP Chest#25|111 -{ - // Default distance is 4 tiles - all we need - callfunc "PCtoNPCRange"; - if(@npc_check) end; - - if ($DD5A_EXPCHEST$[25] != "") goto L_Claimed; - if (#DD5A_EXPCHEST > 10) goto L_Greedy; - mes "(You are the first player to open this chest! THE POWER IS NOW YOURS.)"; - set $DD5A_EXPCHEST$[25], strcharinfo(0); - set #DD5A_EXPCHEST, #DD5A_EXPCHEST+1; - getexp 200000, 10000; - close; - -L_Greedy: - mes "Don't be greedy, let someone else open them, too!"; - close; - -L_Claimed: - mes "Sorry, but "+$DD5A_EXPCHEST$[25]+" got here first!"; - close; -} -099-8,176,241,0|script|EXP Chest#26|111 -{ - // Default distance is 4 tiles - all we need - callfunc "PCtoNPCRange"; - if(@npc_check) end; - - if ($DD5A_EXPCHEST$[26] != "") goto L_Claimed; - if (#DD5A_EXPCHEST > 10) goto L_Greedy; - mes "(You are the first player to open this chest! THE POWER IS NOW YOURS.)"; - set $DD5A_EXPCHEST$[26], strcharinfo(0); - set #DD5A_EXPCHEST, #DD5A_EXPCHEST+1; - getexp 200000, 10000; - close; - -L_Greedy: - mes "Don't be greedy, let someone else open them, too!"; - close; - -L_Claimed: - mes "Sorry, but "+$DD5A_EXPCHEST$[26]+" got here first!"; - close; -} -099-8,312,276,0|script|EXP Chest#27|111 -{ - // Default distance is 4 tiles - all we need - callfunc "PCtoNPCRange"; - if(@npc_check) end; - - if ($DD5A_EXPCHEST$[27] != "") goto L_Claimed; - if (#DD5A_EXPCHEST > 10) goto L_Greedy; - mes "(You are the first player to open this chest! THE POWER IS NOW YOURS.)"; - set $DD5A_EXPCHEST$[27], strcharinfo(0); - set #DD5A_EXPCHEST, #DD5A_EXPCHEST+1; - getexp 200000, 10000; - close; - -L_Greedy: - mes "Don't be greedy, let someone else open them, too!"; - close; - -L_Claimed: - mes "Sorry, but "+$DD5A_EXPCHEST$[27]+" got here first!"; - close; -} -099-8,144,368,0|script|EXP Chest#28|111 -{ - // Default distance is 4 tiles - all we need - callfunc "PCtoNPCRange"; - if(@npc_check) end; - - if ($DD5A_EXPCHEST$[28] != "") goto L_Claimed; - if (#DD5A_EXPCHEST > 10) goto L_Greedy; - mes "(You are the first player to open this chest! THE POWER IS NOW YOURS.)"; - set $DD5A_EXPCHEST$[28], strcharinfo(0); - set #DD5A_EXPCHEST, #DD5A_EXPCHEST+1; - getexp 200000, 10000; - close; - -L_Greedy: - mes "Don't be greedy, let someone else open them, too!"; - close; - -L_Claimed: - mes "Sorry, but "+$DD5A_EXPCHEST$[28]+" got here first!"; - close; -} -099-8,59,174,0|script|EXP Chest#29|111 -{ - // Default distance is 4 tiles - all we need - callfunc "PCtoNPCRange"; - if(@npc_check) end; - - if ($DD5A_EXPCHEST$[29] != "") goto L_Claimed; - if (#DD5A_EXPCHEST > 10) goto L_Greedy; - mes "(You are the first player to open this chest! THE POWER IS NOW YOURS.)"; - set $DD5A_EXPCHEST$[29], strcharinfo(0); - set #DD5A_EXPCHEST, #DD5A_EXPCHEST+1; - getexp 200000, 10000; - close; - -L_Greedy: - mes "Don't be greedy, let someone else open them, too!"; - close; - -L_Claimed: - mes "Sorry, but "+$DD5A_EXPCHEST$[29]+" got here first!"; - close; -} -099-8,32,170,0|script|EXP Chest#30|111 -{ - // Default distance is 4 tiles - all we need - callfunc "PCtoNPCRange"; - if(@npc_check) end; - - if ($DD5A_EXPCHEST$[30] != "") goto L_Claimed; - if (#DD5A_EXPCHEST > 10) goto L_Greedy; - mes "(You are the first player to open this chest! THE POWER IS NOW YOURS.)"; - set $DD5A_EXPCHEST$[30], strcharinfo(0); - set #DD5A_EXPCHEST, #DD5A_EXPCHEST+1; - getexp 200000, 10000; - close; - -L_Greedy: - mes "Don't be greedy, let someone else open them, too!"; - close; - -L_Claimed: - mes "Sorry, but "+$DD5A_EXPCHEST$[30]+" got here first!"; - close; -} -099-8,248,48,0|script|EXP Chest#31|111 -{ - // Default distance is 4 tiles - all we need - callfunc "PCtoNPCRange"; - if(@npc_check) end; - - if ($DD5A_EXPCHEST$[31] != "") goto L_Claimed; - if (#DD5A_EXPCHEST > 10) goto L_Greedy; - mes "(You are the first player to open this chest! THE POWER IS NOW YOURS.)"; - set $DD5A_EXPCHEST$[31], strcharinfo(0); - set #DD5A_EXPCHEST, #DD5A_EXPCHEST+1; - getexp 200000, 10000; - close; - -L_Greedy: - mes "Don't be greedy, let someone else open them, too!"; - close; - -L_Claimed: - mes "Sorry, but "+$DD5A_EXPCHEST$[31]+" got here first!"; - close; -} -099-8,37,311,0|script|EXP Chest#32|111 -{ - // Default distance is 4 tiles - all we need - callfunc "PCtoNPCRange"; - if(@npc_check) end; - - if ($DD5A_EXPCHEST$[32] != "") goto L_Claimed; - if (#DD5A_EXPCHEST > 10) goto L_Greedy; - mes "(You are the first player to open this chest! THE POWER IS NOW YOURS.)"; - set $DD5A_EXPCHEST$[32], strcharinfo(0); - set #DD5A_EXPCHEST, #DD5A_EXPCHEST+1; - getexp 200000, 10000; - close; - -L_Greedy: - mes "Don't be greedy, let someone else open them, too!"; - close; - -L_Claimed: - mes "Sorry, but "+$DD5A_EXPCHEST$[32]+" got here first!"; - close; -} -099-8,206,336,0|script|EXP Chest#33|111 -{ - // Default distance is 4 tiles - all we need - callfunc "PCtoNPCRange"; - if(@npc_check) end; - - if ($DD5A_EXPCHEST$[33] != "") goto L_Claimed; - if (#DD5A_EXPCHEST > 10) goto L_Greedy; - mes "(You are the first player to open this chest! THE POWER IS NOW YOURS.)"; - set $DD5A_EXPCHEST$[33], strcharinfo(0); - set #DD5A_EXPCHEST, #DD5A_EXPCHEST+1; - getexp 200000, 10000; - close; - -L_Greedy: - mes "Don't be greedy, let someone else open them, too!"; - close; - -L_Claimed: - mes "Sorry, but "+$DD5A_EXPCHEST$[33]+" got here first!"; - close; -} -099-8,193,161,0|script|EXP Chest#34|111 -{ - // Default distance is 4 tiles - all we need - callfunc "PCtoNPCRange"; - if(@npc_check) end; - - if ($DD5A_EXPCHEST$[34] != "") goto L_Claimed; - if (#DD5A_EXPCHEST > 10) goto L_Greedy; - mes "(You are the first player to open this chest! THE POWER IS NOW YOURS.)"; - set $DD5A_EXPCHEST$[34], strcharinfo(0); - set #DD5A_EXPCHEST, #DD5A_EXPCHEST+1; - getexp 200000, 10000; - close; - -L_Greedy: - mes "Don't be greedy, let someone else open them, too!"; - close; - -L_Claimed: - mes "Sorry, but "+$DD5A_EXPCHEST$[34]+" got here first!"; - close; -} -099-8,337,296,0|script|EXP Chest#35|111 -{ - // Default distance is 4 tiles - all we need - callfunc "PCtoNPCRange"; - if(@npc_check) end; - - if ($DD5A_EXPCHEST$[35] != "") goto L_Claimed; - if (#DD5A_EXPCHEST > 10) goto L_Greedy; - mes "(You are the first player to open this chest! THE POWER IS NOW YOURS.)"; - set $DD5A_EXPCHEST$[35], strcharinfo(0); - set #DD5A_EXPCHEST, #DD5A_EXPCHEST+1; - getexp 200000, 10000; - close; - -L_Greedy: - mes "Don't be greedy, let someone else open them, too!"; - close; - -L_Claimed: - mes "Sorry, but "+$DD5A_EXPCHEST$[35]+" got here first!"; - close; -} -099-8,235,130,0|script|EXP Chest#36|111 -{ - // Default distance is 4 tiles - all we need - callfunc "PCtoNPCRange"; - if(@npc_check) end; - - if ($DD5A_EXPCHEST$[36] != "") goto L_Claimed; - if (#DD5A_EXPCHEST > 10) goto L_Greedy; - mes "(You are the first player to open this chest! THE POWER IS NOW YOURS.)"; - set $DD5A_EXPCHEST$[36], strcharinfo(0); - set #DD5A_EXPCHEST, #DD5A_EXPCHEST+1; - getexp 200000, 10000; - close; - -L_Greedy: - mes "Don't be greedy, let someone else open them, too!"; - close; - -L_Claimed: - mes "Sorry, but "+$DD5A_EXPCHEST$[36]+" got here first!"; - close; -} -099-8,67,162,0|script|EXP Chest#37|111 -{ - // Default distance is 4 tiles - all we need - callfunc "PCtoNPCRange"; - if(@npc_check) end; - - if ($DD5A_EXPCHEST$[37] != "") goto L_Claimed; - if (#DD5A_EXPCHEST > 10) goto L_Greedy; - mes "(You are the first player to open this chest! THE POWER IS NOW YOURS.)"; - set $DD5A_EXPCHEST$[37], strcharinfo(0); - set #DD5A_EXPCHEST, #DD5A_EXPCHEST+1; - getexp 200000, 10000; - close; - -L_Greedy: - mes "Don't be greedy, let someone else open them, too!"; - close; - -L_Claimed: - mes "Sorry, but "+$DD5A_EXPCHEST$[37]+" got here first!"; - close; -} -099-8,97,110,0|script|EXP Chest#38|111 -{ - // Default distance is 4 tiles - all we need - callfunc "PCtoNPCRange"; - if(@npc_check) end; - - if ($DD5A_EXPCHEST$[38] != "") goto L_Claimed; - if (#DD5A_EXPCHEST > 10) goto L_Greedy; - mes "(You are the first player to open this chest! THE POWER IS NOW YOURS.)"; - set $DD5A_EXPCHEST$[38], strcharinfo(0); - set #DD5A_EXPCHEST, #DD5A_EXPCHEST+1; - getexp 200000, 10000; - close; - -L_Greedy: - mes "Don't be greedy, let someone else open them, too!"; - close; - -L_Claimed: - mes "Sorry, but "+$DD5A_EXPCHEST$[38]+" got here first!"; - close; -} -099-8,380,222,0|script|EXP Chest#39|111 -{ - // Default distance is 4 tiles - all we need - callfunc "PCtoNPCRange"; - if(@npc_check) end; - - if ($DD5A_EXPCHEST$[39] != "") goto L_Claimed; - if (#DD5A_EXPCHEST > 10) goto L_Greedy; - mes "(You are the first player to open this chest! THE POWER IS NOW YOURS.)"; - set $DD5A_EXPCHEST$[39], strcharinfo(0); - set #DD5A_EXPCHEST, #DD5A_EXPCHEST+1; - getexp 200000, 10000; - close; - -L_Greedy: - mes "Don't be greedy, let someone else open them, too!"; - close; - -L_Claimed: - mes "Sorry, but "+$DD5A_EXPCHEST$[39]+" got here first!"; - close; -} -099-8,180,28,0|script|EXP Chest#40|111 -{ - // Default distance is 4 tiles - all we need - callfunc "PCtoNPCRange"; - if(@npc_check) end; - - if ($DD5A_EXPCHEST$[40] != "") goto L_Claimed; - if (#DD5A_EXPCHEST > 10) goto L_Greedy; - mes "(You are the first player to open this chest! THE POWER IS NOW YOURS.)"; - set $DD5A_EXPCHEST$[40], strcharinfo(0); - set #DD5A_EXPCHEST, #DD5A_EXPCHEST+1; - getexp 200000, 10000; - close; - -L_Greedy: - mes "Don't be greedy, let someone else open them, too!"; - close; - -L_Claimed: - mes "Sorry, but "+$DD5A_EXPCHEST$[40]+" got here first!"; - close; -} -099-8,179,146,0|script|EXP Chest#41|111 -{ - // Default distance is 4 tiles - all we need - callfunc "PCtoNPCRange"; - if(@npc_check) end; - - if ($DD5A_EXPCHEST$[41] != "") goto L_Claimed; - if (#DD5A_EXPCHEST > 10) goto L_Greedy; - mes "(You are the first player to open this chest! THE POWER IS NOW YOURS.)"; - set $DD5A_EXPCHEST$[41], strcharinfo(0); - set #DD5A_EXPCHEST, #DD5A_EXPCHEST+1; - getexp 200000, 10000; - close; - -L_Greedy: - mes "Don't be greedy, let someone else open them, too!"; - close; - -L_Claimed: - mes "Sorry, but "+$DD5A_EXPCHEST$[41]+" got here first!"; - close; -} -099-8,124,358,0|script|EXP Chest#42|111 -{ - // Default distance is 4 tiles - all we need - callfunc "PCtoNPCRange"; - if(@npc_check) end; - - if ($DD5A_EXPCHEST$[42] != "") goto L_Claimed; - if (#DD5A_EXPCHEST > 10) goto L_Greedy; - mes "(You are the first player to open this chest! THE POWER IS NOW YOURS.)"; - set $DD5A_EXPCHEST$[42], strcharinfo(0); - set #DD5A_EXPCHEST, #DD5A_EXPCHEST+1; - getexp 200000, 10000; - close; - -L_Greedy: - mes "Don't be greedy, let someone else open them, too!"; - close; - -L_Claimed: - mes "Sorry, but "+$DD5A_EXPCHEST$[42]+" got here first!"; - close; -} -099-8,239,49,0|script|EXP Chest#43|111 -{ - // Default distance is 4 tiles - all we need - callfunc "PCtoNPCRange"; - if(@npc_check) end; - - if ($DD5A_EXPCHEST$[43] != "") goto L_Claimed; - if (#DD5A_EXPCHEST > 10) goto L_Greedy; - mes "(You are the first player to open this chest! THE POWER IS NOW YOURS.)"; - set $DD5A_EXPCHEST$[43], strcharinfo(0); - set #DD5A_EXPCHEST, #DD5A_EXPCHEST+1; - getexp 200000, 10000; - close; - -L_Greedy: - mes "Don't be greedy, let someone else open them, too!"; - close; - -L_Claimed: - mes "Sorry, but "+$DD5A_EXPCHEST$[43]+" got here first!"; - close; -} -099-8,195,201,0|script|EXP Chest#44|111 -{ - // Default distance is 4 tiles - all we need - callfunc "PCtoNPCRange"; - if(@npc_check) end; - - if ($DD5A_EXPCHEST$[44] != "") goto L_Claimed; - if (#DD5A_EXPCHEST > 10) goto L_Greedy; - mes "(You are the first player to open this chest! THE POWER IS NOW YOURS.)"; - set $DD5A_EXPCHEST$[44], strcharinfo(0); - set #DD5A_EXPCHEST, #DD5A_EXPCHEST+1; - getexp 200000, 10000; - close; - -L_Greedy: - mes "Don't be greedy, let someone else open them, too!"; - close; - -L_Claimed: - mes "Sorry, but "+$DD5A_EXPCHEST$[44]+" got here first!"; - close; -} -099-8,168,265,0|script|EXP Chest#45|111 -{ - // Default distance is 4 tiles - all we need - callfunc "PCtoNPCRange"; - if(@npc_check) end; - - if ($DD5A_EXPCHEST$[45] != "") goto L_Claimed; - if (#DD5A_EXPCHEST > 10) goto L_Greedy; - mes "(You are the first player to open this chest! THE POWER IS NOW YOURS.)"; - set $DD5A_EXPCHEST$[45], strcharinfo(0); - set #DD5A_EXPCHEST, #DD5A_EXPCHEST+1; - getexp 200000, 10000; - close; - -L_Greedy: - mes "Don't be greedy, let someone else open them, too!"; - close; - -L_Claimed: - mes "Sorry, but "+$DD5A_EXPCHEST$[45]+" got here first!"; - close; -} -099-8,121,232,0|script|EXP Chest#46|111 -{ - // Default distance is 4 tiles - all we need - callfunc "PCtoNPCRange"; - if(@npc_check) end; - - if ($DD5A_EXPCHEST$[46] != "") goto L_Claimed; - if (#DD5A_EXPCHEST > 10) goto L_Greedy; - mes "(You are the first player to open this chest! THE POWER IS NOW YOURS.)"; - set $DD5A_EXPCHEST$[46], strcharinfo(0); - set #DD5A_EXPCHEST, #DD5A_EXPCHEST+1; - getexp 200000, 10000; - close; - -L_Greedy: - mes "Don't be greedy, let someone else open them, too!"; - close; - -L_Claimed: - mes "Sorry, but "+$DD5A_EXPCHEST$[46]+" got here first!"; - close; -} -099-8,370,284,0|script|EXP Chest#47|111 -{ - // Default distance is 4 tiles - all we need - callfunc "PCtoNPCRange"; - if(@npc_check) end; - - if ($DD5A_EXPCHEST$[47] != "") goto L_Claimed; - if (#DD5A_EXPCHEST > 10) goto L_Greedy; - mes "(You are the first player to open this chest! THE POWER IS NOW YOURS.)"; - set $DD5A_EXPCHEST$[47], strcharinfo(0); - set #DD5A_EXPCHEST, #DD5A_EXPCHEST+1; - getexp 200000, 10000; - close; - -L_Greedy: - mes "Don't be greedy, let someone else open them, too!"; - close; - -L_Claimed: - mes "Sorry, but "+$DD5A_EXPCHEST$[47]+" got here first!"; - close; -} -099-8,243,273,0|script|EXP Chest#48|111 -{ - // Default distance is 4 tiles - all we need - callfunc "PCtoNPCRange"; - if(@npc_check) end; - - if ($DD5A_EXPCHEST$[48] != "") goto L_Claimed; - if (#DD5A_EXPCHEST > 10) goto L_Greedy; - mes "(You are the first player to open this chest! THE POWER IS NOW YOURS.)"; - set $DD5A_EXPCHEST$[48], strcharinfo(0); - set #DD5A_EXPCHEST, #DD5A_EXPCHEST+1; - getexp 200000, 10000; - close; - -L_Greedy: - mes "Don't be greedy, let someone else open them, too!"; - close; - -L_Claimed: - mes "Sorry, but "+$DD5A_EXPCHEST$[48]+" got here first!"; - close; -} -099-8,204,203,0|script|EXP Chest#49|111 -{ - // Default distance is 4 tiles - all we need - callfunc "PCtoNPCRange"; - if(@npc_check) end; - - if ($DD5A_EXPCHEST$[49] != "") goto L_Claimed; - if (#DD5A_EXPCHEST > 10) goto L_Greedy; - mes "(You are the first player to open this chest! THE POWER IS NOW YOURS.)"; - set $DD5A_EXPCHEST$[49], strcharinfo(0); - set #DD5A_EXPCHEST, #DD5A_EXPCHEST+1; - getexp 200000, 10000; - close; - -L_Greedy: - mes "Don't be greedy, let someone else open them, too!"; - close; - -L_Claimed: - mes "Sorry, but "+$DD5A_EXPCHEST$[49]+" got here first!"; - close; -} -099-8,190,366,0|script|EXP Chest#50|111 -{ - // Default distance is 4 tiles - all we need - callfunc "PCtoNPCRange"; - if(@npc_check) end; - - if ($DD5A_EXPCHEST$[50] != "") goto L_Claimed; - if (#DD5A_EXPCHEST > 10) goto L_Greedy; - mes "(You are the first player to open this chest! THE POWER IS NOW YOURS.)"; - set $DD5A_EXPCHEST$[50], strcharinfo(0); - set #DD5A_EXPCHEST, #DD5A_EXPCHEST+1; - getexp 200000, 10000; - close; - -L_Greedy: - mes "Don't be greedy, let someone else open them, too!"; - close; - -L_Claimed: - mes "Sorry, but "+$DD5A_EXPCHEST$[50]+" got here first!"; - close; -} -099-8,25,106,0|script|EXP Chest#51|111 -{ - // Default distance is 4 tiles - all we need - callfunc "PCtoNPCRange"; - if(@npc_check) end; - - if ($DD5A_EXPCHEST$[51] != "") goto L_Claimed; - if (#DD5A_EXPCHEST > 10) goto L_Greedy; - mes "(You are the first player to open this chest! THE POWER IS NOW YOURS.)"; - set $DD5A_EXPCHEST$[51], strcharinfo(0); - set #DD5A_EXPCHEST, #DD5A_EXPCHEST+1; - getexp 200000, 10000; - close; - -L_Greedy: - mes "Don't be greedy, let someone else open them, too!"; - close; - -L_Claimed: - mes "Sorry, but "+$DD5A_EXPCHEST$[51]+" got here first!"; - close; -} -099-8,315,206,0|script|EXP Chest#52|111 -{ - // Default distance is 4 tiles - all we need - callfunc "PCtoNPCRange"; - if(@npc_check) end; - - if ($DD5A_EXPCHEST$[52] != "") goto L_Claimed; - if (#DD5A_EXPCHEST > 10) goto L_Greedy; - mes "(You are the first player to open this chest! THE POWER IS NOW YOURS.)"; - set $DD5A_EXPCHEST$[52], strcharinfo(0); - set #DD5A_EXPCHEST, #DD5A_EXPCHEST+1; - getexp 200000, 10000; - close; - -L_Greedy: - mes "Don't be greedy, let someone else open them, too!"; - close; - -L_Claimed: - mes "Sorry, but "+$DD5A_EXPCHEST$[52]+" got here first!"; - close; -} -099-8,65,293,0|script|EXP Chest#53|111 -{ - // Default distance is 4 tiles - all we need - callfunc "PCtoNPCRange"; - if(@npc_check) end; - - if ($DD5A_EXPCHEST$[53] != "") goto L_Claimed; - if (#DD5A_EXPCHEST > 10) goto L_Greedy; - mes "(You are the first player to open this chest! THE POWER IS NOW YOURS.)"; - set $DD5A_EXPCHEST$[53], strcharinfo(0); - set #DD5A_EXPCHEST, #DD5A_EXPCHEST+1; - getexp 200000, 10000; - close; - -L_Greedy: - mes "Don't be greedy, let someone else open them, too!"; - close; - -L_Claimed: - mes "Sorry, but "+$DD5A_EXPCHEST$[53]+" got here first!"; - close; -} -099-8,382,57,0|script|EXP Chest#54|111 -{ - // Default distance is 4 tiles - all we need - callfunc "PCtoNPCRange"; - if(@npc_check) end; - - if ($DD5A_EXPCHEST$[54] != "") goto L_Claimed; - if (#DD5A_EXPCHEST > 10) goto L_Greedy; - mes "(You are the first player to open this chest! THE POWER IS NOW YOURS.)"; - set $DD5A_EXPCHEST$[54], strcharinfo(0); - set #DD5A_EXPCHEST, #DD5A_EXPCHEST+1; - getexp 200000, 10000; - close; - -L_Greedy: - mes "Don't be greedy, let someone else open them, too!"; - close; - -L_Claimed: - mes "Sorry, but "+$DD5A_EXPCHEST$[54]+" got here first!"; - close; -} -099-8,117,288,0|script|EXP Chest#55|111 -{ - // Default distance is 4 tiles - all we need - callfunc "PCtoNPCRange"; - if(@npc_check) end; - - if ($DD5A_EXPCHEST$[55] != "") goto L_Claimed; - if (#DD5A_EXPCHEST > 10) goto L_Greedy; - mes "(You are the first player to open this chest! THE POWER IS NOW YOURS.)"; - set $DD5A_EXPCHEST$[55], strcharinfo(0); - set #DD5A_EXPCHEST, #DD5A_EXPCHEST+1; - getexp 200000, 10000; - close; - -L_Greedy: - mes "Don't be greedy, let someone else open them, too!"; - close; - -L_Claimed: - mes "Sorry, but "+$DD5A_EXPCHEST$[55]+" got here first!"; - close; -} -099-8,86,63,0|script|EXP Chest#56|111 -{ - // Default distance is 4 tiles - all we need - callfunc "PCtoNPCRange"; - if(@npc_check) end; - - if ($DD5A_EXPCHEST$[56] != "") goto L_Claimed; - if (#DD5A_EXPCHEST > 10) goto L_Greedy; - mes "(You are the first player to open this chest! THE POWER IS NOW YOURS.)"; - set $DD5A_EXPCHEST$[56], strcharinfo(0); - set #DD5A_EXPCHEST, #DD5A_EXPCHEST+1; - getexp 200000, 10000; - close; - -L_Greedy: - mes "Don't be greedy, let someone else open them, too!"; - close; - -L_Claimed: - mes "Sorry, but "+$DD5A_EXPCHEST$[56]+" got here first!"; - close; -} -099-8,257,212,0|script|EXP Chest#57|111 -{ - // Default distance is 4 tiles - all we need - callfunc "PCtoNPCRange"; - if(@npc_check) end; - - if ($DD5A_EXPCHEST$[57] != "") goto L_Claimed; - if (#DD5A_EXPCHEST > 10) goto L_Greedy; - mes "(You are the first player to open this chest! THE POWER IS NOW YOURS.)"; - set $DD5A_EXPCHEST$[57], strcharinfo(0); - set #DD5A_EXPCHEST, #DD5A_EXPCHEST+1; - getexp 200000, 10000; - close; - -L_Greedy: - mes "Don't be greedy, let someone else open them, too!"; - close; - -L_Claimed: - mes "Sorry, but "+$DD5A_EXPCHEST$[57]+" got here first!"; - close; -} -099-8,290,210,0|script|EXP Chest#58|111 -{ - // Default distance is 4 tiles - all we need - callfunc "PCtoNPCRange"; - if(@npc_check) end; - - if ($DD5A_EXPCHEST$[58] != "") goto L_Claimed; - if (#DD5A_EXPCHEST > 10) goto L_Greedy; - mes "(You are the first player to open this chest! THE POWER IS NOW YOURS.)"; - set $DD5A_EXPCHEST$[58], strcharinfo(0); - set #DD5A_EXPCHEST, #DD5A_EXPCHEST+1; - getexp 200000, 10000; - close; - -L_Greedy: - mes "Don't be greedy, let someone else open them, too!"; - close; - -L_Claimed: - mes "Sorry, but "+$DD5A_EXPCHEST$[58]+" got here first!"; - close; -} -099-8,118,320,0|script|EXP Chest#59|111 -{ - // Default distance is 4 tiles - all we need - callfunc "PCtoNPCRange"; - if(@npc_check) end; - - if ($DD5A_EXPCHEST$[59] != "") goto L_Claimed; - if (#DD5A_EXPCHEST > 10) goto L_Greedy; - mes "(You are the first player to open this chest! THE POWER IS NOW YOURS.)"; - set $DD5A_EXPCHEST$[59], strcharinfo(0); - set #DD5A_EXPCHEST, #DD5A_EXPCHEST+1; - getexp 200000, 10000; - close; - -L_Greedy: - mes "Don't be greedy, let someone else open them, too!"; - close; - -L_Claimed: - mes "Sorry, but "+$DD5A_EXPCHEST$[59]+" got here first!"; - close; -} -099-8,332,96,0|script|EXP Chest#60|111 -{ - // Default distance is 4 tiles - all we need - callfunc "PCtoNPCRange"; - if(@npc_check) end; - - if ($DD5A_EXPCHEST$[60] != "") goto L_Claimed; - if (#DD5A_EXPCHEST > 10) goto L_Greedy; - mes "(You are the first player to open this chest! THE POWER IS NOW YOURS.)"; - set $DD5A_EXPCHEST$[60], strcharinfo(0); - set #DD5A_EXPCHEST, #DD5A_EXPCHEST+1; - getexp 200000, 10000; - close; - -L_Greedy: - mes "Don't be greedy, let someone else open them, too!"; - close; - -L_Claimed: - mes "Sorry, but "+$DD5A_EXPCHEST$[60]+" got here first!"; - close; -} -099-8,147,33,0|script|EXP Chest#61|111 -{ - // Default distance is 4 tiles - all we need - callfunc "PCtoNPCRange"; - if(@npc_check) end; - - if ($DD5A_EXPCHEST$[61] != "") goto L_Claimed; - if (#DD5A_EXPCHEST > 10) goto L_Greedy; - mes "(You are the first player to open this chest! THE POWER IS NOW YOURS.)"; - set $DD5A_EXPCHEST$[61], strcharinfo(0); - set #DD5A_EXPCHEST, #DD5A_EXPCHEST+1; - getexp 200000, 10000; - close; - -L_Greedy: - mes "Don't be greedy, let someone else open them, too!"; - close; - -L_Claimed: - mes "Sorry, but "+$DD5A_EXPCHEST$[61]+" got here first!"; - close; -} -099-8,109,271,0|script|EXP Chest#62|111 -{ - // Default distance is 4 tiles - all we need - callfunc "PCtoNPCRange"; - if(@npc_check) end; - - if ($DD5A_EXPCHEST$[62] != "") goto L_Claimed; - if (#DD5A_EXPCHEST > 10) goto L_Greedy; - mes "(You are the first player to open this chest! THE POWER IS NOW YOURS.)"; - set $DD5A_EXPCHEST$[62], strcharinfo(0); - set #DD5A_EXPCHEST, #DD5A_EXPCHEST+1; - getexp 200000, 10000; - close; - -L_Greedy: - mes "Don't be greedy, let someone else open them, too!"; - close; - -L_Claimed: - mes "Sorry, but "+$DD5A_EXPCHEST$[62]+" got here first!"; - close; -} -099-8,217,216,0|script|EXP Chest#63|111 -{ - // Default distance is 4 tiles - all we need - callfunc "PCtoNPCRange"; - if(@npc_check) end; - - if ($DD5A_EXPCHEST$[63] != "") goto L_Claimed; - if (#DD5A_EXPCHEST > 10) goto L_Greedy; - mes "(You are the first player to open this chest! THE POWER IS NOW YOURS.)"; - set $DD5A_EXPCHEST$[63], strcharinfo(0); - set #DD5A_EXPCHEST, #DD5A_EXPCHEST+1; - getexp 200000, 10000; - close; - -L_Greedy: - mes "Don't be greedy, let someone else open them, too!"; - close; - -L_Claimed: - mes "Sorry, but "+$DD5A_EXPCHEST$[63]+" got here first!"; - close; -} -099-8,65,136,0|script|EXP Chest#64|111 -{ - // Default distance is 4 tiles - all we need - callfunc "PCtoNPCRange"; - if(@npc_check) end; - - if ($DD5A_EXPCHEST$[64] != "") goto L_Claimed; - if (#DD5A_EXPCHEST > 10) goto L_Greedy; - mes "(You are the first player to open this chest! THE POWER IS NOW YOURS.)"; - set $DD5A_EXPCHEST$[64], strcharinfo(0); - set #DD5A_EXPCHEST, #DD5A_EXPCHEST+1; - getexp 200000, 10000; - close; - -L_Greedy: - mes "Don't be greedy, let someone else open them, too!"; - close; - -L_Claimed: - mes "Sorry, but "+$DD5A_EXPCHEST$[64]+" got here first!"; - close; -} -099-8,116,45,0|script|EXP Chest#65|111 -{ - // Default distance is 4 tiles - all we need - callfunc "PCtoNPCRange"; - if(@npc_check) end; - - if ($DD5A_EXPCHEST$[65] != "") goto L_Claimed; - if (#DD5A_EXPCHEST > 10) goto L_Greedy; - mes "(You are the first player to open this chest! THE POWER IS NOW YOURS.)"; - set $DD5A_EXPCHEST$[65], strcharinfo(0); - set #DD5A_EXPCHEST, #DD5A_EXPCHEST+1; - getexp 200000, 10000; - close; - -L_Greedy: - mes "Don't be greedy, let someone else open them, too!"; - close; - -L_Claimed: - mes "Sorry, but "+$DD5A_EXPCHEST$[65]+" got here first!"; - close; -} -099-8,279,111,0|script|EXP Chest#66|111 -{ - // Default distance is 4 tiles - all we need - callfunc "PCtoNPCRange"; - if(@npc_check) end; - - if ($DD5A_EXPCHEST$[66] != "") goto L_Claimed; - if (#DD5A_EXPCHEST > 10) goto L_Greedy; - mes "(You are the first player to open this chest! THE POWER IS NOW YOURS.)"; - set $DD5A_EXPCHEST$[66], strcharinfo(0); - set #DD5A_EXPCHEST, #DD5A_EXPCHEST+1; - getexp 200000, 10000; - close; - -L_Greedy: - mes "Don't be greedy, let someone else open them, too!"; - close; - -L_Claimed: - mes "Sorry, but "+$DD5A_EXPCHEST$[66]+" got here first!"; - close; -} -099-8,98,100,0|script|EXP Chest#67|111 -{ - // Default distance is 4 tiles - all we need - callfunc "PCtoNPCRange"; - if(@npc_check) end; - - if ($DD5A_EXPCHEST$[67] != "") goto L_Claimed; - if (#DD5A_EXPCHEST > 10) goto L_Greedy; - mes "(You are the first player to open this chest! THE POWER IS NOW YOURS.)"; - set $DD5A_EXPCHEST$[67], strcharinfo(0); - set #DD5A_EXPCHEST, #DD5A_EXPCHEST+1; - getexp 200000, 10000; - close; - -L_Greedy: - mes "Don't be greedy, let someone else open them, too!"; - close; - -L_Claimed: - mes "Sorry, but "+$DD5A_EXPCHEST$[67]+" got here first!"; - close; -} -099-8,168,53,0|script|EXP Chest#68|111 -{ - // Default distance is 4 tiles - all we need - callfunc "PCtoNPCRange"; - if(@npc_check) end; - - if ($DD5A_EXPCHEST$[68] != "") goto L_Claimed; - if (#DD5A_EXPCHEST > 10) goto L_Greedy; - mes "(You are the first player to open this chest! THE POWER IS NOW YOURS.)"; - set $DD5A_EXPCHEST$[68], strcharinfo(0); - set #DD5A_EXPCHEST, #DD5A_EXPCHEST+1; - getexp 200000, 10000; - close; - -L_Greedy: - mes "Don't be greedy, let someone else open them, too!"; - close; - -L_Claimed: - mes "Sorry, but "+$DD5A_EXPCHEST$[68]+" got here first!"; - close; -} -099-8,235,353,0|script|EXP Chest#69|111 -{ - // Default distance is 4 tiles - all we need - callfunc "PCtoNPCRange"; - if(@npc_check) end; - - if ($DD5A_EXPCHEST$[69] != "") goto L_Claimed; - if (#DD5A_EXPCHEST > 10) goto L_Greedy; - mes "(You are the first player to open this chest! THE POWER IS NOW YOURS.)"; - set $DD5A_EXPCHEST$[69], strcharinfo(0); - set #DD5A_EXPCHEST, #DD5A_EXPCHEST+1; - getexp 200000, 10000; - close; - -L_Greedy: - mes "Don't be greedy, let someone else open them, too!"; - close; - -L_Claimed: - mes "Sorry, but "+$DD5A_EXPCHEST$[69]+" got here first!"; - close; -} -099-8,263,109,0|script|EXP Chest#70|111 -{ - // Default distance is 4 tiles - all we need - callfunc "PCtoNPCRange"; - if(@npc_check) end; - - if ($DD5A_EXPCHEST$[70] != "") goto L_Claimed; - if (#DD5A_EXPCHEST > 10) goto L_Greedy; - mes "(You are the first player to open this chest! THE POWER IS NOW YOURS.)"; - set $DD5A_EXPCHEST$[70], strcharinfo(0); - set #DD5A_EXPCHEST, #DD5A_EXPCHEST+1; - getexp 200000, 10000; - close; - -L_Greedy: - mes "Don't be greedy, let someone else open them, too!"; - close; - -L_Claimed: - mes "Sorry, but "+$DD5A_EXPCHEST$[70]+" got here first!"; - close; -} -099-8,226,26,0|script|EXP Chest#71|111 -{ - // Default distance is 4 tiles - all we need - callfunc "PCtoNPCRange"; - if(@npc_check) end; - - if ($DD5A_EXPCHEST$[71] != "") goto L_Claimed; - if (#DD5A_EXPCHEST > 10) goto L_Greedy; - mes "(You are the first player to open this chest! THE POWER IS NOW YOURS.)"; - set $DD5A_EXPCHEST$[71], strcharinfo(0); - set #DD5A_EXPCHEST, #DD5A_EXPCHEST+1; - getexp 200000, 10000; - close; - -L_Greedy: - mes "Don't be greedy, let someone else open them, too!"; - close; - -L_Claimed: - mes "Sorry, but "+$DD5A_EXPCHEST$[71]+" got here first!"; - close; -} -099-8,352,118,0|script|EXP Chest#72|111 -{ - // Default distance is 4 tiles - all we need - callfunc "PCtoNPCRange"; - if(@npc_check) end; - - if ($DD5A_EXPCHEST$[72] != "") goto L_Claimed; - if (#DD5A_EXPCHEST > 10) goto L_Greedy; - mes "(You are the first player to open this chest! THE POWER IS NOW YOURS.)"; - set $DD5A_EXPCHEST$[72], strcharinfo(0); - set #DD5A_EXPCHEST, #DD5A_EXPCHEST+1; - getexp 200000, 10000; - close; - -L_Greedy: - mes "Don't be greedy, let someone else open them, too!"; - close; - -L_Claimed: - mes "Sorry, but "+$DD5A_EXPCHEST$[72]+" got here first!"; - close; -} -099-8,154,270,0|script|EXP Chest#73|111 -{ - // Default distance is 4 tiles - all we need - callfunc "PCtoNPCRange"; - if(@npc_check) end; - - if ($DD5A_EXPCHEST$[73] != "") goto L_Claimed; - if (#DD5A_EXPCHEST > 10) goto L_Greedy; - mes "(You are the first player to open this chest! THE POWER IS NOW YOURS.)"; - set $DD5A_EXPCHEST$[73], strcharinfo(0); - set #DD5A_EXPCHEST, #DD5A_EXPCHEST+1; - getexp 200000, 10000; - close; - -L_Greedy: - mes "Don't be greedy, let someone else open them, too!"; - close; - -L_Claimed: - mes "Sorry, but "+$DD5A_EXPCHEST$[73]+" got here first!"; - close; -} -099-8,41,199,0|script|EXP Chest#74|111 -{ - // Default distance is 4 tiles - all we need - callfunc "PCtoNPCRange"; - if(@npc_check) end; - - if ($DD5A_EXPCHEST$[74] != "") goto L_Claimed; - if (#DD5A_EXPCHEST > 10) goto L_Greedy; - mes "(You are the first player to open this chest! THE POWER IS NOW YOURS.)"; - set $DD5A_EXPCHEST$[74], strcharinfo(0); - set #DD5A_EXPCHEST, #DD5A_EXPCHEST+1; - getexp 200000, 10000; - close; - -L_Greedy: - mes "Don't be greedy, let someone else open them, too!"; - close; - -L_Claimed: - mes "Sorry, but "+$DD5A_EXPCHEST$[74]+" got here first!"; - close; -} -099-8,208,306,0|script|EXP Chest#75|111 -{ - // Default distance is 4 tiles - all we need - callfunc "PCtoNPCRange"; - if(@npc_check) end; - - if ($DD5A_EXPCHEST$[75] != "") goto L_Claimed; - if (#DD5A_EXPCHEST > 10) goto L_Greedy; - mes "(You are the first player to open this chest! THE POWER IS NOW YOURS.)"; - set $DD5A_EXPCHEST$[75], strcharinfo(0); - set #DD5A_EXPCHEST, #DD5A_EXPCHEST+1; - getexp 200000, 10000; - close; - -L_Greedy: - mes "Don't be greedy, let someone else open them, too!"; - close; - -L_Claimed: - mes "Sorry, but "+$DD5A_EXPCHEST$[75]+" got here first!"; - close; -} -099-8,47,55,0|script|EXP Chest#76|111 -{ - // Default distance is 4 tiles - all we need - callfunc "PCtoNPCRange"; - if(@npc_check) end; - - if ($DD5A_EXPCHEST$[76] != "") goto L_Claimed; - if (#DD5A_EXPCHEST > 10) goto L_Greedy; - mes "(You are the first player to open this chest! THE POWER IS NOW YOURS.)"; - set $DD5A_EXPCHEST$[76], strcharinfo(0); - set #DD5A_EXPCHEST, #DD5A_EXPCHEST+1; - getexp 200000, 10000; - close; - -L_Greedy: - mes "Don't be greedy, let someone else open them, too!"; - close; - -L_Claimed: - mes "Sorry, but "+$DD5A_EXPCHEST$[76]+" got here first!"; - close; -} -099-8,21,142,0|script|EXP Chest#77|111 -{ - // Default distance is 4 tiles - all we need - callfunc "PCtoNPCRange"; - if(@npc_check) end; - - if ($DD5A_EXPCHEST$[77] != "") goto L_Claimed; - if (#DD5A_EXPCHEST > 10) goto L_Greedy; - mes "(You are the first player to open this chest! THE POWER IS NOW YOURS.)"; - set $DD5A_EXPCHEST$[77], strcharinfo(0); - set #DD5A_EXPCHEST, #DD5A_EXPCHEST+1; - getexp 200000, 10000; - close; - -L_Greedy: - mes "Don't be greedy, let someone else open them, too!"; - close; - -L_Claimed: - mes "Sorry, but "+$DD5A_EXPCHEST$[77]+" got here first!"; - close; -} -099-8,94,293,0|script|EXP Chest#78|111 -{ - // Default distance is 4 tiles - all we need - callfunc "PCtoNPCRange"; - if(@npc_check) end; - - if ($DD5A_EXPCHEST$[78] != "") goto L_Claimed; - if (#DD5A_EXPCHEST > 10) goto L_Greedy; - mes "(You are the first player to open this chest! THE POWER IS NOW YOURS.)"; - set $DD5A_EXPCHEST$[78], strcharinfo(0); - set #DD5A_EXPCHEST, #DD5A_EXPCHEST+1; - getexp 200000, 10000; - close; - -L_Greedy: - mes "Don't be greedy, let someone else open them, too!"; - close; - -L_Claimed: - mes "Sorry, but "+$DD5A_EXPCHEST$[78]+" got here first!"; - close; -} -099-8,232,214,0|script|EXP Chest#79|111 -{ - // Default distance is 4 tiles - all we need - callfunc "PCtoNPCRange"; - if(@npc_check) end; - - if ($DD5A_EXPCHEST$[79] != "") goto L_Claimed; - if (#DD5A_EXPCHEST > 10) goto L_Greedy; - mes "(You are the first player to open this chest! THE POWER IS NOW YOURS.)"; - set $DD5A_EXPCHEST$[79], strcharinfo(0); - set #DD5A_EXPCHEST, #DD5A_EXPCHEST+1; - getexp 200000, 10000; - close; - -L_Greedy: - mes "Don't be greedy, let someone else open them, too!"; - close; - -L_Claimed: - mes "Sorry, but "+$DD5A_EXPCHEST$[79]+" got here first!"; - close; -} -099-8,30,152,0|script|EXP Chest#80|111 -{ - // Default distance is 4 tiles - all we need - callfunc "PCtoNPCRange"; - if(@npc_check) end; - - if ($DD5A_EXPCHEST$[80] != "") goto L_Claimed; - if (#DD5A_EXPCHEST > 10) goto L_Greedy; - mes "(You are the first player to open this chest! THE POWER IS NOW YOURS.)"; - set $DD5A_EXPCHEST$[80], strcharinfo(0); - set #DD5A_EXPCHEST, #DD5A_EXPCHEST+1; - getexp 200000, 10000; - close; - -L_Greedy: - mes "Don't be greedy, let someone else open them, too!"; - close; - -L_Claimed: - mes "Sorry, but "+$DD5A_EXPCHEST$[80]+" got here first!"; - close; -} -099-8,374,319,0|script|EXP Chest#81|111 -{ - // Default distance is 4 tiles - all we need - callfunc "PCtoNPCRange"; - if(@npc_check) end; - - if ($DD5A_EXPCHEST$[81] != "") goto L_Claimed; - if (#DD5A_EXPCHEST > 10) goto L_Greedy; - mes "(You are the first player to open this chest! THE POWER IS NOW YOURS.)"; - set $DD5A_EXPCHEST$[81], strcharinfo(0); - set #DD5A_EXPCHEST, #DD5A_EXPCHEST+1; - getexp 200000, 10000; - close; - -L_Greedy: - mes "Don't be greedy, let someone else open them, too!"; - close; - -L_Claimed: - mes "Sorry, but "+$DD5A_EXPCHEST$[81]+" got here first!"; - close; -} -099-8,252,289,0|script|EXP Chest#82|111 -{ - // Default distance is 4 tiles - all we need - callfunc "PCtoNPCRange"; - if(@npc_check) end; - - if ($DD5A_EXPCHEST$[82] != "") goto L_Claimed; - if (#DD5A_EXPCHEST > 10) goto L_Greedy; - mes "(You are the first player to open this chest! THE POWER IS NOW YOURS.)"; - set $DD5A_EXPCHEST$[82], strcharinfo(0); - set #DD5A_EXPCHEST, #DD5A_EXPCHEST+1; - getexp 200000, 10000; - close; - -L_Greedy: - mes "Don't be greedy, let someone else open them, too!"; - close; - -L_Claimed: - mes "Sorry, but "+$DD5A_EXPCHEST$[82]+" got here first!"; - close; -} -099-8,218,324,0|script|EXP Chest#83|111 -{ - // Default distance is 4 tiles - all we need - callfunc "PCtoNPCRange"; - if(@npc_check) end; - - if ($DD5A_EXPCHEST$[83] != "") goto L_Claimed; - if (#DD5A_EXPCHEST > 10) goto L_Greedy; - mes "(You are the first player to open this chest! THE POWER IS NOW YOURS.)"; - set $DD5A_EXPCHEST$[83], strcharinfo(0); - set #DD5A_EXPCHEST, #DD5A_EXPCHEST+1; - getexp 200000, 10000; - close; - -L_Greedy: - mes "Don't be greedy, let someone else open them, too!"; - close; - -L_Claimed: - mes "Sorry, but "+$DD5A_EXPCHEST$[83]+" got here first!"; - close; -} -099-8,24,187,0|script|EXP Chest#84|111 -{ - // Default distance is 4 tiles - all we need - callfunc "PCtoNPCRange"; - if(@npc_check) end; - - if ($DD5A_EXPCHEST$[84] != "") goto L_Claimed; - if (#DD5A_EXPCHEST > 10) goto L_Greedy; - mes "(You are the first player to open this chest! THE POWER IS NOW YOURS.)"; - set $DD5A_EXPCHEST$[84], strcharinfo(0); - set #DD5A_EXPCHEST, #DD5A_EXPCHEST+1; - getexp 200000, 10000; - close; - -L_Greedy: - mes "Don't be greedy, let someone else open them, too!"; - close; - -L_Claimed: - mes "Sorry, but "+$DD5A_EXPCHEST$[84]+" got here first!"; - close; -} -099-8,137,65,0|script|EXP Chest#85|111 -{ - // Default distance is 4 tiles - all we need - callfunc "PCtoNPCRange"; - if(@npc_check) end; - - if ($DD5A_EXPCHEST$[85] != "") goto L_Claimed; - if (#DD5A_EXPCHEST > 10) goto L_Greedy; - mes "(You are the first player to open this chest! THE POWER IS NOW YOURS.)"; - set $DD5A_EXPCHEST$[85], strcharinfo(0); - set #DD5A_EXPCHEST, #DD5A_EXPCHEST+1; - getexp 200000, 10000; - close; - -L_Greedy: - mes "Don't be greedy, let someone else open them, too!"; - close; - -L_Claimed: - mes "Sorry, but "+$DD5A_EXPCHEST$[85]+" got here first!"; - close; -} -099-8,285,167,0|script|EXP Chest#86|111 -{ - // Default distance is 4 tiles - all we need - callfunc "PCtoNPCRange"; - if(@npc_check) end; - - if ($DD5A_EXPCHEST$[86] != "") goto L_Claimed; - if (#DD5A_EXPCHEST > 10) goto L_Greedy; - mes "(You are the first player to open this chest! THE POWER IS NOW YOURS.)"; - set $DD5A_EXPCHEST$[86], strcharinfo(0); - set #DD5A_EXPCHEST, #DD5A_EXPCHEST+1; - getexp 200000, 10000; - close; - -L_Greedy: - mes "Don't be greedy, let someone else open them, too!"; - close; - -L_Claimed: - mes "Sorry, but "+$DD5A_EXPCHEST$[86]+" got here first!"; - close; -} -099-8,154,83,0|script|EXP Chest#87|111 -{ - // Default distance is 4 tiles - all we need - callfunc "PCtoNPCRange"; - if(@npc_check) end; - - if ($DD5A_EXPCHEST$[87] != "") goto L_Claimed; - if (#DD5A_EXPCHEST > 10) goto L_Greedy; - mes "(You are the first player to open this chest! THE POWER IS NOW YOURS.)"; - set $DD5A_EXPCHEST$[87], strcharinfo(0); - set #DD5A_EXPCHEST, #DD5A_EXPCHEST+1; - getexp 200000, 10000; - close; - -L_Greedy: - mes "Don't be greedy, let someone else open them, too!"; - close; - -L_Claimed: - mes "Sorry, but "+$DD5A_EXPCHEST$[87]+" got here first!"; - close; -} -099-8,63,239,0|script|EXP Chest#88|111 -{ - // Default distance is 4 tiles - all we need - callfunc "PCtoNPCRange"; - if(@npc_check) end; - - if ($DD5A_EXPCHEST$[88] != "") goto L_Claimed; - if (#DD5A_EXPCHEST > 10) goto L_Greedy; - mes "(You are the first player to open this chest! THE POWER IS NOW YOURS.)"; - set $DD5A_EXPCHEST$[88], strcharinfo(0); - set #DD5A_EXPCHEST, #DD5A_EXPCHEST+1; - getexp 200000, 10000; - close; - -L_Greedy: - mes "Don't be greedy, let someone else open them, too!"; - close; - -L_Claimed: - mes "Sorry, but "+$DD5A_EXPCHEST$[88]+" got here first!"; - close; -} -099-8,88,156,0|script|EXP Chest#89|111 -{ - // Default distance is 4 tiles - all we need - callfunc "PCtoNPCRange"; - if(@npc_check) end; - - if ($DD5A_EXPCHEST$[89] != "") goto L_Claimed; - if (#DD5A_EXPCHEST > 10) goto L_Greedy; - mes "(You are the first player to open this chest! THE POWER IS NOW YOURS.)"; - set $DD5A_EXPCHEST$[89], strcharinfo(0); - set #DD5A_EXPCHEST, #DD5A_EXPCHEST+1; - getexp 200000, 10000; - close; - -L_Greedy: - mes "Don't be greedy, let someone else open them, too!"; - close; - -L_Claimed: - mes "Sorry, but "+$DD5A_EXPCHEST$[89]+" got here first!"; - close; -} -099-8,320,34,0|script|EXP Chest#90|111 -{ - // Default distance is 4 tiles - all we need - callfunc "PCtoNPCRange"; - if(@npc_check) end; - - if ($DD5A_EXPCHEST$[90] != "") goto L_Claimed; - if (#DD5A_EXPCHEST > 10) goto L_Greedy; - mes "(You are the first player to open this chest! THE POWER IS NOW YOURS.)"; - set $DD5A_EXPCHEST$[90], strcharinfo(0); - set #DD5A_EXPCHEST, #DD5A_EXPCHEST+1; - getexp 200000, 10000; - close; - -L_Greedy: - mes "Don't be greedy, let someone else open them, too!"; - close; - -L_Claimed: - mes "Sorry, but "+$DD5A_EXPCHEST$[90]+" got here first!"; - close; -} -099-8,99,334,0|script|EXP Chest#91|111 -{ - // Default distance is 4 tiles - all we need - callfunc "PCtoNPCRange"; - if(@npc_check) end; - - if ($DD5A_EXPCHEST$[91] != "") goto L_Claimed; - if (#DD5A_EXPCHEST > 10) goto L_Greedy; - mes "(You are the first player to open this chest! THE POWER IS NOW YOURS.)"; - set $DD5A_EXPCHEST$[91], strcharinfo(0); - set #DD5A_EXPCHEST, #DD5A_EXPCHEST+1; - getexp 200000, 10000; - close; - -L_Greedy: - mes "Don't be greedy, let someone else open them, too!"; - close; - -L_Claimed: - mes "Sorry, but "+$DD5A_EXPCHEST$[91]+" got here first!"; - close; -} -099-8,248,303,0|script|EXP Chest#92|111 -{ - // Default distance is 4 tiles - all we need - callfunc "PCtoNPCRange"; - if(@npc_check) end; - - if ($DD5A_EXPCHEST$[92] != "") goto L_Claimed; - if (#DD5A_EXPCHEST > 10) goto L_Greedy; - mes "(You are the first player to open this chest! THE POWER IS NOW YOURS.)"; - set $DD5A_EXPCHEST$[92], strcharinfo(0); - set #DD5A_EXPCHEST, #DD5A_EXPCHEST+1; - getexp 200000, 10000; - close; - -L_Greedy: - mes "Don't be greedy, let someone else open them, too!"; - close; - -L_Claimed: - mes "Sorry, but "+$DD5A_EXPCHEST$[92]+" got here first!"; - close; -} -099-8,71,59,0|script|EXP Chest#93|111 -{ - // Default distance is 4 tiles - all we need - callfunc "PCtoNPCRange"; - if(@npc_check) end; - - if ($DD5A_EXPCHEST$[93] != "") goto L_Claimed; - if (#DD5A_EXPCHEST > 10) goto L_Greedy; - mes "(You are the first player to open this chest! THE POWER IS NOW YOURS.)"; - set $DD5A_EXPCHEST$[93], strcharinfo(0); - set #DD5A_EXPCHEST, #DD5A_EXPCHEST+1; - getexp 200000, 10000; - close; - -L_Greedy: - mes "Don't be greedy, let someone else open them, too!"; - close; - -L_Claimed: - mes "Sorry, but "+$DD5A_EXPCHEST$[93]+" got here first!"; - close; -} -099-8,321,254,0|script|EXP Chest#94|111 -{ - // Default distance is 4 tiles - all we need - callfunc "PCtoNPCRange"; - if(@npc_check) end; - - if ($DD5A_EXPCHEST$[94] != "") goto L_Claimed; - if (#DD5A_EXPCHEST > 10) goto L_Greedy; - mes "(You are the first player to open this chest! THE POWER IS NOW YOURS.)"; - set $DD5A_EXPCHEST$[94], strcharinfo(0); - set #DD5A_EXPCHEST, #DD5A_EXPCHEST+1; - getexp 200000, 10000; - close; - -L_Greedy: - mes "Don't be greedy, let someone else open them, too!"; - close; - -L_Claimed: - mes "Sorry, but "+$DD5A_EXPCHEST$[94]+" got here first!"; - close; -} -099-8,165,321,0|script|EXP Chest#95|111 -{ - // Default distance is 4 tiles - all we need - callfunc "PCtoNPCRange"; - if(@npc_check) end; - - if ($DD5A_EXPCHEST$[95] != "") goto L_Claimed; - if (#DD5A_EXPCHEST > 10) goto L_Greedy; - mes "(You are the first player to open this chest! THE POWER IS NOW YOURS.)"; - set $DD5A_EXPCHEST$[95], strcharinfo(0); - set #DD5A_EXPCHEST, #DD5A_EXPCHEST+1; - getexp 200000, 10000; - close; - -L_Greedy: - mes "Don't be greedy, let someone else open them, too!"; - close; - -L_Claimed: - mes "Sorry, but "+$DD5A_EXPCHEST$[95]+" got here first!"; - close; -} -099-8,94,350,0|script|EXP Chest#96|111 -{ - // Default distance is 4 tiles - all we need - callfunc "PCtoNPCRange"; - if(@npc_check) end; - - if ($DD5A_EXPCHEST$[96] != "") goto L_Claimed; - if (#DD5A_EXPCHEST > 10) goto L_Greedy; - mes "(You are the first player to open this chest! THE POWER IS NOW YOURS.)"; - set $DD5A_EXPCHEST$[96], strcharinfo(0); - set #DD5A_EXPCHEST, #DD5A_EXPCHEST+1; - getexp 200000, 10000; - close; - -L_Greedy: - mes "Don't be greedy, let someone else open them, too!"; - close; - -L_Claimed: - mes "Sorry, but "+$DD5A_EXPCHEST$[96]+" got here first!"; - close; -} -099-8,193,265,0|script|EXP Chest#97|111 -{ - // Default distance is 4 tiles - all we need - callfunc "PCtoNPCRange"; - if(@npc_check) end; - - if ($DD5A_EXPCHEST$[97] != "") goto L_Claimed; - if (#DD5A_EXPCHEST > 10) goto L_Greedy; - mes "(You are the first player to open this chest! THE POWER IS NOW YOURS.)"; - set $DD5A_EXPCHEST$[97], strcharinfo(0); - set #DD5A_EXPCHEST, #DD5A_EXPCHEST+1; - getexp 200000, 10000; - close; - -L_Greedy: - mes "Don't be greedy, let someone else open them, too!"; - close; - -L_Claimed: - mes "Sorry, but "+$DD5A_EXPCHEST$[97]+" got here first!"; - close; -} -099-8,206,73,0|script|EXP Chest#98|111 -{ - // Default distance is 4 tiles - all we need - callfunc "PCtoNPCRange"; - if(@npc_check) end; - - if ($DD5A_EXPCHEST$[98] != "") goto L_Claimed; - if (#DD5A_EXPCHEST > 10) goto L_Greedy; - mes "(You are the first player to open this chest! THE POWER IS NOW YOURS.)"; - set $DD5A_EXPCHEST$[98], strcharinfo(0); - set #DD5A_EXPCHEST, #DD5A_EXPCHEST+1; - getexp 200000, 10000; - close; - -L_Greedy: - mes "Don't be greedy, let someone else open them, too!"; - close; - -L_Claimed: - mes "Sorry, but "+$DD5A_EXPCHEST$[98]+" got here first!"; - close; -} -099-8,62,273,0|script|EXP Chest#99|111 -{ - // Default distance is 4 tiles - all we need - callfunc "PCtoNPCRange"; - if(@npc_check) end; - - if ($DD5A_EXPCHEST$[99] != "") goto L_Claimed; - if (#DD5A_EXPCHEST > 10) goto L_Greedy; - mes "(You are the first player to open this chest! THE POWER IS NOW YOURS.)"; - set $DD5A_EXPCHEST$[99], strcharinfo(0); - set #DD5A_EXPCHEST, #DD5A_EXPCHEST+1; - getexp 200000, 10000; - close; - -L_Greedy: - mes "Don't be greedy, let someone else open them, too!"; - close; - -L_Claimed: - mes "Sorry, but "+$DD5A_EXPCHEST$[99]+" got here first!"; - close; +// Labyrinth chests refactor (C) 2025 Hello=) + +// This NPC seeds Labyrinth by 100 Pandora Box chests upon server startup +// Replaces *huge* 60K code chunk by Jes. +-|script|LabyrinthChests|32767 +{ + end; + +OnInit: + set .map$, "099-8"; + freeloop 1; // inits 100 chests thus runs plenty of code + goto L_SeedChest; + +L_SeedChest: + if (.chest > 100) + goto L_Done; // All 100 chests were placed? Done. + set .x, rand(21, 381); // Pick random spot @ Labyrinth map + set .y, rand(23, 380); + if (iscollision(.map$, .x, .y)) // Is chosen spot collision? + goto L_SeedChest; // Retry i-th chest placement + set .chest, .chest + 1; + set .nm$, "??#LabyChest" + .chest; // ??:visible part, #LabyChestNNN:hidden unique part. + void call("pandorabox_create", .map$, .x, .y, .nm$, 111, 0); + goto L_SeedChest; + +L_Done: + freeloop 0; + end; } diff --git a/world/map/npc/functions/pandora_box_chests.txt b/world/map/npc/functions/pandora_box_chests.txt new file mode 100644 index 00000000..72d6bbdf --- /dev/null +++ b/world/map/npc/functions/pandora_box_chests.txt @@ -0,0 +1,144 @@ +// Pandora box style chests (C) 2025 Hello=) +// Loosely based on digg holes management code + +// This NPC handles management tasks around "pandorabox" chests placement +-|script|PandoraboxManager|32767 +{ + end; + +OnCmdAdd: // Lets GM to manually place "pandora box" chest. + if (GM < 60) end; + set #DD5A_EXPCHEST, 11; // So GM (caller) can NOT trigger chests + set .@name$, "??#pb" + getmap() + "|" + POS_X + "|" + POS_Y; + set .@res, call("pandorabox_create", getmap(), POS_X, POS_Y, .@name$, 111, 0); + end; + +OnCmdRemove: + if (GM < 60) end; + set .@map$, getmap(); // Find all NPCs on map. + foreach 1, .@map$, 0, 0, getmapmaxx(.@map$), getmapmaxy(.@map$), "PandoraboxManager::OnNPC"; + end; + +OnNPC: + set .@npcnm$, strnpcinfo(0, @target_id); + if (get(.pandorabox, @target_id) == 1) destroy @target_id; // Pandora box -> destroy + end; + +OnInit: + registercmd "@removechests", "PandoraboxManager::OnCmdRemove"; + registercmd "@addchest", "PandoraboxManager::OnCmdAdd"; + end; +} + + +// This NPC is template for pandora box chests instances +-|script|PandoraboxTemplate|32767 +{ + set .res, call("pandorabox_reward"); + if ((.res > 0) && (.pandorabox == 1)) // Can only open pandora box once. + destroy; + end; + +// to add pandora box using this NPC as template via donpcevent(). Do NOT throw this event directly! +OnNewPandorabox: + if !(mapexists(.map$)) end; // avoid server crash in puppet() + set .res, puppet(.map$, .x, .y, .name$, .sprite, 1, 1); // instatiate pandora box NPC + if (.res <= 0) end; // Omit puppet setup on failure. + if (.lifetime > 0) addnpctimer .lifetime, strnpcinfo(0, .res) + "::OnPandoraExpired"; + set .pandorabox, 1, .res; // Mark pandora box NPC as such + end; + +OnPandoraExpired: // Called if pandora box timed out + destroy; +} + +// PUBLIC API. Creates requested pandora box chest NPC +// This function designed to run in ANY context, whether RID attached or not. +// It does rather fancy inter-NPC call to switch to "template" NPC. +// Inputs: see code below. +// Return: On success: NPC ID of chest NPC created, > 0 +// On failure: 0 if puppet failed, -1 if arg check failed. +// Side effects: +// * Puppet NPC - possibly self destructing on timer +// * Needs PandoraboxTemplate NPC to exist +function|script|pandorabox_create +{ + set .@map$, getarg(0, ""); // Chest's map. + set .@x, getarg(1, -10); // Chest's X + set .@y, getarg(2, -10); // Chest's Y + set .@name$, getarg(3, ""); // Chest's NPC label + set .@sprite, getarg(4, -10); // Chest's NPC sprite ID + set .@lifetime, getarg(5, 0); // Should chest persist? + set .@res, -1; // Validate params, fail by default + set .@npc, getnpcid("PandoraboxTemplate"); // To stage inter-npc call + if (!(mapexists(.@map$)) || // Map should exist + (.@x <= 0) || (.@y <= 0) || // (x,y) should fit map + (.@x > getmapmaxx(.@map$)) || (.@y > getmapmaxy(.@map$)) || + (.@name$ == "") || // NPC name cant be empty + (.@npc < 1)) // getnpcid(template) should succeed + goto L_Fail; + // NPC's var value NPC ID - copy vars (inter-npc call setup) + set .map$, .@map$, .@npc; + set .x, .@x, .@npc; + set .y, .@y, .@npc; + set .name$, .@name$, .@npc; + set .sprite, .@sprite, .@npc; + set .lifetime, .@lifetime, .@npc; + donpcevent("PandoraboxTemplate::OnNewPandorabox"); // actually do inter-npc call + set .@res, get(.res, .@npc); // Fetch .res from called npc + return .@res; + +L_Fail: + debugmes "pandorabox_create FAIL (bug!) Map=" + .@map$ + " x=" + .@x + " y=" + .@y + " nm=" + .@name$ + " sprite=" + .@sprite + " .@npc=" + .@npc; + return .@res; +} + +// Internal function, do not call except by pandora box chest npcs. +// This function should be called with RID attached. +// Inputs: nothing, but assumes player attached. +// Return: If player got reward, 1 (caller should renove chest, etc) +// If something wrong, 0 (do not remove chest so others can try) +// Side effects: +// * Player gets random reward. +function|script|pandorabox_reward +{ + if !(isin(strnpcinfo(3), getnpcx()-2, getnpcy()-2, getnpcx()+2, getnpcy()+2)) + goto L_TooFar; // Too far away -> cant open chest. + + if (#DD5A_EXPCHEST > 10) + goto L_Greedy; // GreedHead detection reuses existing DD5A_EXPCHEST var (saves server RAM) + + set #DD5A_EXPCHEST, #DD5A_EXPCHEST+1; + set .@mode, rand(1, 3); + if (.@mode == 1) goto L_RandXP; + elif (.@mode == 2) goto L_RandGP; + // TODO more random rewards here? + goto L_RandBP; + +L_RandXP: + set .@reward_xp, 10000 + rand(220000); // 120K avg, original had fixed 200K, + set .@reward_jxp, 1 + rand(5000); // 2500 avg, original had 10K + message strcharinfo(0), "[PandoraBox] : you feel stronger and wiser now! " + .@reward_xp + " XP gained!"; + getexp .@reward_xp, .@reward_jxp; + return 1; + +L_RandGP: + set .@reward_gp, 10000 + rand(160000); // About 90K avg + message strcharinfo(0), "[PandoraBox] : Whoa! You find " + .@reward_gp + " gold coins!"; + set Zeny, Zeny + .@reward_gp; + return 1; + +L_RandBP: + set .@reward_bp, 10 + rand(60); // 40 BP avg + set BOSS_POINTS, (BOSS_POINTS + .@reward_bp); + message strcharinfo(0), "[PandoraBox] : You feel daring today, " + .@reward_bp + " BP gained for " + BOSS_POINTS + " total!"; + return 1; + +L_Greedy: + message strcharinfo(0), "[PandoraBox] : don't be so greedy, let others to open chests, too!"; + return 0; + +L_TooFar: + message strcharinfo(0), "[PandoraBox] : you are too far to open chest!"; + return 0; +} diff --git a/world/map/npc/scripts.conf b/world/map/npc/scripts.conf index a0aa5182..0ff781c4 100644 --- a/world/map/npc/scripts.conf +++ b/world/map/npc/scripts.conf @@ -40,6 +40,7 @@ npc: npc/functions/teleport_manager.txt npc: npc/functions/treasure_hunt.txt npc: npc/functions/spawns_on_mobkill.txt npc: npc/functions/storage_chests.txt +npc: npc/functions/pandora_box_chests.txt // Item Functions npc: npc/items/purification_potion.txt |