diff options
Diffstat (limited to 'npc')
-rw-r--r-- | npc/Changelog.txt | 4 | ||||
-rw-r--r-- | npc/custom/WoE_Setter.txt | 6 | ||||
-rw-r--r-- | npc/custom/eAAC_Scripts/kafraExpress/ke_warp_woe.txt | 2 | ||||
-rw-r--r-- | npc/guild/gldfunc_manager.txt | 2 | ||||
-rw-r--r-- | npc/other/Global_Functions.txt | 164 |
5 files changed, 11 insertions, 167 deletions
diff --git a/npc/Changelog.txt b/npc/Changelog.txt index 380b4b97b..a97eed75b 100644 --- a/npc/Changelog.txt +++ b/npc/Changelog.txt @@ -33,6 +33,10 @@ KarLaeda Date Added ====== + +2006/12/22 + * Corrected scripts to use the new format of agitcheck + * Simplified the global function "getJobName" [Skotlex] 2006/12/19 * Now root functions calls can have parenthesis (will take any parenthesis after the function as the start of the argument list). diff --git a/npc/custom/WoE_Setter.txt b/npc/custom/WoE_Setter.txt index 8a842dec7..9fafa0233 100644 --- a/npc/custom/WoE_Setter.txt +++ b/npc/custom/WoE_Setter.txt @@ -120,7 +120,7 @@ L_Reset: mes "Are you sure?"; next; menu "No, what was I thinking",L_No,"Yes I really want to do it",-; - if(agitcheck(0)==1) goto L_WoEOn; + if(agitcheck()) goto L_WoEOn; deletearray $sday[0],200; deletearray $eday[0],200; deletearray $woetime[0],200; @@ -173,14 +173,14 @@ L_StartLoop: // Stop WoE L_End: - if(agitcheck(0)==0) end; + if(!agitcheck()) end; Announce "The War Of Emperium is over!",8; AgitEnd; end; // Start WoE L_Start: - if(agitcheck(0)==1) end; + if(agitcheck()) end; Announce "The War Of Emperium has begun!",8; AgitStart; end; diff --git a/npc/custom/eAAC_Scripts/kafraExpress/ke_warp_woe.txt b/npc/custom/eAAC_Scripts/kafraExpress/ke_warp_woe.txt index 2adce07a0..f9aefbb49 100644 --- a/npc/custom/eAAC_Scripts/kafraExpress/ke_warp_woe.txt +++ b/npc/custom/eAAC_Scripts/kafraExpress/ke_warp_woe.txt @@ -25,7 +25,7 @@ function script F_keWarpWOE { callfunc "F_keIntro", e_srt, "Sorry, these warps are only available to people who belong to a Guild."; return; } - if ($@kewg_checkAgit && agitcheck(0) == 0) { + if ($@kewg_checkAgit && !agitcheck()) { callfunc "F_keIntro", e_srt, "Sorry, these warps are only enabled during the Guild Wars."; return; } diff --git a/npc/guild/gldfunc_manager.txt b/npc/guild/gldfunc_manager.txt index d42f37ed7..619291df8 100644 --- a/npc/guild/gldfunc_manager.txt +++ b/npc/guild/gldfunc_manager.txt @@ -231,7 +231,7 @@ function script F_GldManager { //set @SGuardian,strmobinfo(4,1287) + (@Defence*2000); //uncomment the following line to disable guardians Installation during WoE - //if(agitcheck(0) != 0) goto L_CantGuard; + //if(agitcheck()) goto L_CantGuard; mes "Would you like to install a guardian? Guardians will protect the guild base from enemies."; mes "Please choose a guardian."; next; diff --git a/npc/other/Global_Functions.txt b/npc/other/Global_Functions.txt index d8a8f4d93..757ae4aa6 100644 --- a/npc/other/Global_Functions.txt +++ b/npc/other/Global_Functions.txt @@ -282,167 +282,7 @@ function script F_ItemName { ////////////////////////////////////////////////////////////////////////////////// function script getJobName { - switch(getarg(0)){ - case Job_Novice: - return "Novice"; - case Job_Swordman: - return "Swordman"; - case Job_Mage: - return "Magician"; - case Job_Archer: - return "Archer"; - case Job_Acolyte: - return "Acolyte"; - case Job_Merchant: - return "Merchant"; - case Job_Thief: - return "Thief"; - case Job_Knight: - case Job_Knight2: - return "Knight"; - case Job_Priest: - return "Priest"; - case Job_Wizard: - return "Wizard"; - case Job_Blacksmith: - return "Blacksmith"; - case Job_Hunter: - return "Hunter"; - case Job_Assassin: - return "Assassin"; - case Job_Crusader: - case Job_Crusader2: - return "Crusader"; - case Job_Monk: - return "Monk"; - case Job_Sage: - return "Sage"; - case Job_Rogue: - return "Rogue"; - case Job_Alchem: - return "Alchemist"; - case Job_Bard: - return "Bard"; - case Job_Dancer: - return "Dancer"; - case Job_SuperNovice: - return "Super Novice"; - case Job_Gunslinger: - return "Gunsligner"; - case Job_Ninja: - return "Ninja"; - case Job_Xmas: - return "Xmas"; - case Job_Novice_High: - return "Novice High"; - case Job_Swordman_High: - return "Swordman High"; - case Job_Mage_High: - return "Magician High"; - case Job_Archer_High: - return "Archer High"; - case Job_Acolyte_High: - return "Acolyte High"; - case Job_Merchant_High: - return "Merchant High"; - case Job_Thief_High: - return "Thief High"; - case Job_Lord_Knight: - case Job_Lord_Knight2: - return "Lord Knight"; - case Job_High_Priest: - return "High Priest"; - case Job_High_Wizard: - return "High Wizard"; - case Job_Whitesmith: - return "Whitesmith"; - case Job_Sniper: - return "Sniper"; - case Job_Assassin_Cross: - return "Assassin Cross"; - case Job_Paladin: - case Job_Paladin2: - return "Paladin"; - case Job_Champion: - return "Champion"; - case Job_Professor: - return "Professor"; - case Job_Stalker: - return "Stalker"; - case Job_Creator: - return "Creator"; - case Job_Clown: - return "Clown"; - case Job_Gypsy: - return "Gypsy"; - case Job_Baby: - return "Baby"; - case Job_Baby_Swordman: - return "Baby Swordman"; - case Job_Baby_Mage: - return "Baby Magician"; - case Job_Baby_Archer: - return "Baby Archer"; - case Job_Baby_Acolyte: - return "Baby Acolyte"; - case Job_Baby_Merchant: - return "Baby Merchant"; - case Job_Baby_Thief: - return "Baby Thief"; - case Job_Baby_Knight: - case Job_Baby_Knight2: - return "Baby Knight"; - case Job_Baby_Priest: - return "Baby Priest"; - case Job_Baby_Wizard: - return "Baby Wizard"; - case Job_Baby_Blacksmith: - return "Baby Blacksmith"; - case Job_Baby_Hunter: - return "Baby Hunter"; - case Job_Baby_Assassin: - return "Baby Assassin"; - case Job_Baby_Crusader: - case Job_Baby_Crusader2: - return "Baby Crusader"; - case Job_Baby_Monk: - return "Baby Monk"; - case Job_Baby_Sage: - return "Baby Sage"; - case Job_Baby_Rogue: - return "Baby Rogue"; - case Job_Baby_Alchem: - return "Baby Alchemist"; - case Job_Baby_Bard: - return "Baby Bard"; - case Job_Baby_Dancer: - return "Baby Dancer"; - case Job_Super_Baby: - return "Super Baby"; - case Job_Taekwon: - if(Sex == 0) - return "Taekwon Girl"; - else - return "Taekwon Boy"; - case Job_Star_Gladiator: - case Job_Star_Gladiator2: - return "Star Gladiator"; - case Job_Soul_Linker: - return "Soul Linker"; - case Job_Ninja: - return "Ninja"; - case Job_Gunslinger: - return "Gunslinger"; - case Job_Xmas: - return "Christmas"; - case Option_Wedding: - if(Sex == 0) - return "Bride"; - else - return "Bridegroom"; - default: - return "omghaxor"; - } + return jobname(getarg(0)); } ////////////////////////////////////////////////////////////////////////////////// @@ -483,4 +323,4 @@ function script F_Load2Skills { } set ADV_QSK2,0; //Clear var return; -}
\ No newline at end of file +} |