summaryrefslogtreecommitdiff
path: root/npc/guild/gldfunc_manager.txt
diff options
context:
space:
mode:
Diffstat (limited to 'npc/guild/gldfunc_manager.txt')
-rw-r--r--npc/guild/gldfunc_manager.txt74
1 files changed, 37 insertions, 37 deletions
diff --git a/npc/guild/gldfunc_manager.txt b/npc/guild/gldfunc_manager.txt
index 619291df8..b69ceb6f8 100644
--- a/npc/guild/gldfunc_manager.txt
+++ b/npc/guild/gldfunc_manager.txt
@@ -36,7 +36,7 @@
//==============================================
function script F_GldManager {
- set @GID, GetCastleData(getarg(1)+".gat",1);
+ set @GID, GetCastleData(getarg(1),1);
mes "[ "+getarg(0)+" ]";
if (@GID == 0){
mes "I am waiting for my master. Brave adventurer, follow your destiny!";
@@ -69,12 +69,12 @@ function script F_GldManager {
mes "[ "+getarg(0)+" ]";
mes "Guild Base Investment Information.";
mes " ";
- mes "Current Commerce Investment is : ^FF3322" + GetCastleData(getarg(1)+".gat",2) + "^000000 points.";
- mes "^0000ff - You have invested " + GetCastleData(getarg(1)+".gat",4) + " times today.^000000";
+ mes "Current Commerce Investment is : ^FF3322" + GetCastleData(getarg(1),2) + "^000000 points.";
+ mes "^0000ff - You have invested " + GetCastleData(getarg(1),4) + " times today.^000000";
next;
mes "[ "+getarg(0)+" ]";
- mes "Current Defence Investment is : ^FF3322" + GetCastleData(getarg(1)+".gat",3) + "^000000 points.";
- mes "^0000ff- You have invested " + GetCastleData(getarg(1)+".gat",5) + " times today.^000000";
+ mes "Current Defence Investment is : ^FF3322" + GetCastleData(getarg(1),3) + "^000000 points.";
+ mes "^0000ff- You have invested " + GetCastleData(getarg(1),5) + " times today.^000000";
mes " ";
mes "That is about it.";
return 0;
@@ -82,8 +82,8 @@ function script F_GldManager {
//========================
M_Comrc:
//=========
- set @TriggerE,GetCastleData(getarg(1)+".gat",4);
- set @Economy,GetCastleData(getarg(1)+".gat",2);
+ set @TriggerE,GetCastleData(getarg(1),4);
+ set @Economy,GetCastleData(getarg(1),2);
if(@Economy < 8) set @eco_invest,10000;
if(@Economy >= 8) set @eco_invest,20000;
if(@Economy >= 16) set @eco_invest,40000;
@@ -127,9 +127,9 @@ function script F_GldManager {
return 0;
}
set Zeny,Zeny-@eco_invest;
- SetCastleData getarg(1)+".gat",4,@TriggerE+1;
+ SetCastleData getarg(1),4,@TriggerE+1;
// if we learnt Emsolute Develop there's 50% chance to get +1 investment again
- SetCastleData getarg(1)+".gat",2,@Economy + 1 + (getgdskilllv(@GID,10014)>0 && rand(100)>50 && @Economy<99);
+ SetCastleData getarg(1),2,@Economy + 1 + (getgdskilllv(@GID,10014)>0 && rand(100)>50 && @Economy<99);
mes "You have invested successfully.";
return 0;
@@ -137,8 +137,8 @@ function script F_GldManager {
//=========================
M_Def:
//========
- set @TriggerD,GetCastleData(getarg(1)+".gat",5);
- set @Defence,GetCastleData(getarg(1)+".gat",3);
+ set @TriggerD,GetCastleData(getarg(1),5);
+ set @Defence,GetCastleData(getarg(1),3);
if(@Defence < 8) set @def_invest,20000;
if(@Defence >= 8) set @def_invest,40000;
if(@Defence >= 16) set @def_invest,80000;
@@ -182,8 +182,8 @@ function script F_GldManager {
return 0;
}
set Zeny,Zeny-@def_invest;
- SetCastleData getarg(1)+".gat",5,@TriggerD+1;
- SetCastleData getarg(1)+".gat",3,@Defence+1;
+ SetCastleData getarg(1),5,@TriggerD+1;
+ SetCastleData getarg(1),3,@Defence+1;
// set new hp values for guardians
set @Defence, @Defence + 1;
set @AGuardian, 28634 + (@Defence*2000);
@@ -192,14 +192,14 @@ function script F_GldManager {
//set @AGuardian,strmobinfo(4,1285) + (@Defence*2000);
//set @KGuardian,strmobinfo(4,1286) + (@Defence*2000);
//set @SGuardian,strmobinfo(4,1287) + (@Defence*2000);
- if (GetCastleData(getarg(1)+".gat",10) == 1) SetCastleData getarg(1)+".gat",18,@SGuardian;
- if (GetCastleData(getarg(1)+".gat",11) == 1) SetCastleData getarg(1)+".gat",19,@SGuardian;
- if (GetCastleData(getarg(1)+".gat",12) == 1) SetCastleData getarg(1)+".gat",20,@SGuardian;
- if (GetCastleData(getarg(1)+".gat",13) == 1) SetCastleData getarg(1)+".gat",21,@AGuardian;
- if (GetCastleData(getarg(1)+".gat",14) == 1) SetCastleData getarg(1)+".gat",22,@AGuardian;
- if (GetCastleData(getarg(1)+".gat",15) == 1) SetCastleData getarg(1)+".gat",23,@KGuardian;
- if (GetCastleData(getarg(1)+".gat",16) == 1) SetCastleData getarg(1)+".gat",24,@KGuardian;
- if (GetCastleData(getarg(1)+".gat",17) == 1) SetCastleData getarg(1)+".gat",25,@KGuardian;
+ if (GetCastleData(getarg(1),10) == 1) SetCastleData getarg(1),18,@SGuardian;
+ if (GetCastleData(getarg(1),11) == 1) SetCastleData getarg(1),19,@SGuardian;
+ if (GetCastleData(getarg(1),12) == 1) SetCastleData getarg(1),20,@SGuardian;
+ if (GetCastleData(getarg(1),13) == 1) SetCastleData getarg(1),21,@AGuardian;
+ if (GetCastleData(getarg(1),14) == 1) SetCastleData getarg(1),22,@AGuardian;
+ if (GetCastleData(getarg(1),15) == 1) SetCastleData getarg(1),23,@KGuardian;
+ if (GetCastleData(getarg(1),16) == 1) SetCastleData getarg(1),24,@KGuardian;
+ if (GetCastleData(getarg(1),17) == 1) SetCastleData getarg(1),25,@KGuardian;
mes "You have invested successfully.";
return 0;
@@ -214,7 +214,7 @@ function script F_GldManager {
return 0;
}
- set @Defence,GetCastleData(getarg(1)+".gat",3);
+ set @Defence,GetCastleData(getarg(1),3);
set @Guardian0,guardianinfo(0);
set @Guardian1,guardianinfo(1);
set @Guardian2,guardianinfo(2);
@@ -246,49 +246,49 @@ function script F_GldManager {
"Knight Guardian (" + @Guardian7 + "/" + @KGuardian + ")",L4_8;
L4_1:
- if (GetCastleData(getarg(1)+".gat",10) == 1) goto L_GotGuard;
+ if (GetCastleData(getarg(1),10) == 1) goto L_GotGuard;
set @GDnum,10;
set @GDnum2,18;
set @GuardianHP,@SGuardian;
goto L4_9;
L4_2:
- if (GetCastleData(getarg(1)+".gat",11) == 1) goto L_GotGuard;
+ if (GetCastleData(getarg(1),11) == 1) goto L_GotGuard;
set @GDnum,11;
set @GDnum2,19;
set @GuardianHP,@SGuardian;
goto L4_9;
L4_3:
- if (GetCastleData(getarg(1)+".gat",12) == 1) goto L_GotGuard;
+ if (GetCastleData(getarg(1),12) == 1) goto L_GotGuard;
set @GDnum,12;
set @GDnum2,20;
set @GuardianHP,@SGuardian;
goto L4_9;
L4_4:
- if (GetCastleData(getarg(1)+".gat",13) == 1) goto L_GotGuard;
+ if (GetCastleData(getarg(1),13) == 1) goto L_GotGuard;
set @GDnum,13;
set @GDnum2,21;
set @GuardianHP,@AGuardian;
goto L4_9;
L4_5:
- if (GetCastleData(getarg(1)+".gat",14) == 1) goto L_GotGuard;
+ if (GetCastleData(getarg(1),14) == 1) goto L_GotGuard;
set @GDnum,14;
set @GDnum2,22;
set @GuardianHP,@AGuardian;
goto L4_9;
L4_6:
- if (GetCastleData(getarg(1)+".gat",15) == 1) goto L_GotGuard;
+ if (GetCastleData(getarg(1),15) == 1) goto L_GotGuard;
set @GDnum,15;
set @GDnum2,23;
set @GuardianHP,@KGuardian;
goto L4_9;
L4_7:
- if (GetCastleData(getarg(1)+".gat",16) == 1) goto L_GotGuard;
+ if (GetCastleData(getarg(1),16) == 1) goto L_GotGuard;
set @GDnum,16;
set @GDnum2,24;
set @GuardianHP,@KGuardian;
goto L4_9;
L4_8:
- if (GetCastleData(getarg(1)+".gat",17) == 1) goto L_GotGuard;
+ if (GetCastleData(getarg(1),17) == 1) goto L_GotGuard;
set @GDnum,17;
set @GDnum2,25;
set @GuardianHP,@KGuardian;
@@ -304,8 +304,8 @@ function script F_GldManager {
return 0;
}
set Zeny,Zeny-10000;
- SetCastleData getarg(1)+".gat",@GDnum,1;
- SetCastleData getarg(1)+".gat",@GDnum2,@GuardianHP;
+ SetCastleData getarg(1),@GDnum,1;
+ SetCastleData getarg(1),@GDnum2,@GuardianHP;
return 1;
L_GotGuard:
@@ -322,7 +322,7 @@ function script F_GldManager {
M_Kaf:
//======
mes "[ "+getarg(0)+" ]";
- if (GetCastleData(getarg(1)+".gat",9) == 1) goto L_Dismiss;
+ if (GetCastleData(getarg(1),9) == 1) goto L_Dismiss;
if (getgdskilllv(@GID,10001) == 0){
mes "Master, you don't have a contract with the Kafra Service Company.";
mes "In order to hire a Kafra, you must first learn the Guild skill ^5533FFContract With Kafra^000000.";
@@ -341,7 +341,7 @@ function script F_GldManager {
}
set Zeny,Zeny-10000;
enablenpc "Kafra Service#"+getarg(4);
- SetCastleData getarg(1)+".gat",9,1;
+ SetCastleData getarg(1),9,1;
mes "You have created a contract with the Kafra Service Company.";
next;
cutin "kafra_01",2;
@@ -374,7 +374,7 @@ function script F_GldManager {
mes "It's unfortunate that I won't be able to serve your guild anymore....";
next;
disablenpc "Kafra Service#"+getarg(4);
- SetCastleData getarg(1)+".gat",9,0;
+ SetCastleData getarg(1),9,0;
cutin "kafra_01",255;
mes "[ "+getarg(0)+" ]";
mes "The Kafra has been dismissed. But... we should really get a Kafra as soon as possible!";
@@ -401,7 +401,7 @@ function script F_GldManager {
mes "Please follow me through the secret passage way.";
mes "You must pull down on the secret switch in order to get out.";
next;
- warp getarg(1)+".gat",getarg(2),getarg(3);
+ warp getarg(1),getarg(2),getarg(3);
return 0;
sM_TresEnd:
mes "[ "+getarg(0)+" ]";
@@ -416,4 +416,4 @@ function script F_GldManager {
mes "[ "+getarg(0)+" ]";
mes "As you wish, master.";
return 0;
-}
+} \ No newline at end of file