summaryrefslogtreecommitdiff
path: root/npc/guild/gldfunc_treasure.txt
diff options
context:
space:
mode:
authorLupus <Lupus@54d463be-8e91-2dee-dedb-b68131a5f0ec>2007-03-15 20:32:55 +0000
committerLupus <Lupus@54d463be-8e91-2dee-dedb-b68131a5f0ec>2007-03-15 20:32:55 +0000
commit788a65d41bce37aad857e5b5202d0293e84963a2 (patch)
tree2070539f8f2ed0a635ff39a18194c21a76595848 /npc/guild/gldfunc_treasure.txt
parenta50476a588b2d7bc819cf0235a093dcddef9f2bf (diff)
downloadhercules-788a65d41bce37aad857e5b5202d0293e84963a2.tar.gz
hercules-788a65d41bce37aad857e5b5202d0293e84963a2.tar.bz2
hercules-788a65d41bce37aad857e5b5202d0293e84963a2.tar.xz
hercules-788a65d41bce37aad857e5b5202d0293e84963a2.zip
removed all .GAT from all the scripts and tested
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@10018 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'npc/guild/gldfunc_treasure.txt')
-rw-r--r--npc/guild/gldfunc_treasure.txt18
1 files changed, 9 insertions, 9 deletions
diff --git a/npc/guild/gldfunc_treasure.txt b/npc/guild/gldfunc_treasure.txt
index cc3894ec2..74126d42d 100644
--- a/npc/guild/gldfunc_treasure.txt
+++ b/npc/guild/gldfunc_treasure.txt
@@ -46,23 +46,23 @@
//================================================
function script F_GldTreas {
if(getarg(10) == 1) goto L_SPAWN;
- setcastledata getarg(0)+".gat",4,0;
- setcastledata getarg(0)+".gat",5,0;
- killmonster getarg(0)+".gat","Treasure_"+getarg(1)+"::OnDied";
- if(GetCastleData(getarg(0)+".gat",2) > 100 || GetCastleData(getarg(0)+".gat",1) == 0) return;
+ setcastledata getarg(0),4,0;
+ setcastledata getarg(0),5,0;
+ killmonster getarg(0),"Treasure_"+getarg(1)+"::OnDied";
+ if(GetCastleData(getarg(0),2) > 100 || GetCastleData(getarg(0),1) == 0) return;
//sets the counter variable = to the box number amount
if(getarg(0) == "nguild_prt" || getarg(0) == "nguild_alde" || getarg(0) == "nguild_gef" || getarg(0) == "nguild_pay" ) {
//Novice Castles can't have more than 1 Treasure Chest
set getarg(2),1;
}else{
- set getarg(2),GetCastleData(getarg(0)+".gat",2)/5+4;
+ set getarg(2),GetCastleData(getarg(0),2)/5+4;
}
if (getarg(2) <= 0) return;
set getarg(3), getarg(2); //sets the counter variable = to the box number amount
L_SPAWN:
- set getarg(4), getarg(5)+((getarg(3)+1) & 1); //sets the box id variable = to the box id
- areamonster getarg(0)+".gat",getarg(6),getarg(7),getarg(8),getarg(9),"Treasure Chest",getarg(4),1,"Treasure_"+getarg(1)+"::OnDied";
+ set getarg(4), getarg(5)+(getarg(3)+1) & 1); //sets the box id variable = to the box id
+ areamonster getarg(0),getarg(6),getarg(7),getarg(8),getarg(9),"Treasure Chest",getarg(4),1,"Treasure_"+getarg(1)+"::OnDied";
set getarg(3), getarg(3) - 1;
if(getarg(3) > 0) goto L_SPAWN;
return;
@@ -80,6 +80,6 @@ function script F_GldTreasSw {
close;
M_1:
- warp getarg(0)+".gat",getarg(1),getarg(2);
+ warp getarg(0),getarg(1),getarg(2);
return;
-}
+} \ No newline at end of file