summaryrefslogtreecommitdiff
path: root/npc/custom/eAAC_Scripts
diff options
context:
space:
mode:
authorFlavioJS <FlavioJS@54d463be-8e91-2dee-dedb-b68131a5f0ec>2007-01-09 17:59:27 +0000
committerFlavioJS <FlavioJS@54d463be-8e91-2dee-dedb-b68131a5f0ec>2007-01-09 17:59:27 +0000
commit16496f556a38e624dc75a61097ce4d9b6c370d0b (patch)
tree41dbc35ddd012a04ce96885664913115f00b6da5 /npc/custom/eAAC_Scripts
parentfaa7a02a489886461cd039cc306f1fc55d81daa5 (diff)
downloadhercules-16496f556a38e624dc75a61097ce4d9b6c370d0b.tar.gz
hercules-16496f556a38e624dc75a61097ce4d9b6c370d0b.tar.bz2
hercules-16496f556a38e624dc75a61097ce4d9b6c370d0b.tar.xz
hercules-16496f556a38e624dc75a61097ce4d9b6c370d0b.zip
- Updated some functions calls that where using the wrong number of arguments with checkcart,checkfalcon,checkriding,getgmlevel,basicskillcheck.
hmm, maybe I should add a config option for lazy scripter that still want to run script code that uses too many arguments git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@9637 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'npc/custom/eAAC_Scripts')
-rw-r--r--npc/custom/eAAC_Scripts/kafraExpress/ke_main.txt4
-rw-r--r--npc/custom/eAAC_Scripts/messageboards.txt4
-rw-r--r--npc/custom/eAAC_Scripts/quest_warper.txt8
3 files changed, 8 insertions, 8 deletions
diff --git a/npc/custom/eAAC_Scripts/kafraExpress/ke_main.txt b/npc/custom/eAAC_Scripts/kafraExpress/ke_main.txt
index 5aa2d3dd4..eb5c3567b 100644
--- a/npc/custom/eAAC_Scripts/kafraExpress/ke_main.txt
+++ b/npc/custom/eAAC_Scripts/kafraExpress/ke_main.txt
@@ -300,7 +300,7 @@ L_HEAL_ALL:
//Function storage: allows access to the storage facility
//The sent argument is the displaying image, so we can clear it afterwards.
function script F_keStorage {
- if(basicskillcheck(0) > 0 && getskilllv(1) < 6) {
+ if(basicskillcheck() > 0 && getskilllv(1) < 6) {
callfunc "F_keIntro", -1, "I am sorry, but you beed basic skill level 6 to use the storage.";
return;
}
@@ -318,7 +318,7 @@ function script F_keStorage {
//Function G Storage: Allows access to the Guild Storage
function script F_keGuildStorage {
- if(basicskillcheck(0) > 0 && getskilllv(1) < 6) {
+ if(basicskillcheck() > 0 && getskilllv(1) < 6) {
callfunc "F_keIntro", -1, "I am sorry, but you beed basic skill level 6 to use the storage.";
return;
}
diff --git a/npc/custom/eAAC_Scripts/messageboards.txt b/npc/custom/eAAC_Scripts/messageboards.txt
index 331e42385..3c03289f8 100644
--- a/npc/custom/eAAC_Scripts/messageboards.txt
+++ b/npc/custom/eAAC_Scripts/messageboards.txt
@@ -326,8 +326,8 @@ mes "Posted By: "+$messageboardpostname$[@tempview]+".";
mes "On: "+$messageboardpostdate$[@tempview]+".";
mes $messageboardpost$[@tempview]+".";
next;
-if(($mymessage[@tempview] == 5) && (getgmlevel(99)>0)) menu "Next Message",L_top2,"Delete My Message",L_delmy,"Edit my message",L_editmy,"Delete This message",L_Del;
-if((getgmlevel(99)>0)) menu "Next Message",L_top2,"Delete This message",L_Del;
+if(($mymessage[@tempview] == 5) && (getgmlevel()>=99)) menu "Next Message",L_top2,"Delete My Message",L_delmy,"Edit my message",L_editmy,"Delete This message",L_Del;
+if((getgmlevel()>=99)) menu "Next Message",L_top2,"Delete This message",L_Del;
if(($mymessage[@tempview] == 5)) menu "Next Message",L_top2,"Delete My Message",L_delmy,"Edit my message",L_editmy;
menu "Next message",L_top2;
close;
diff --git a/npc/custom/eAAC_Scripts/quest_warper.txt b/npc/custom/eAAC_Scripts/quest_warper.txt
index bfd876060..78857c74b 100644
--- a/npc/custom/eAAC_Scripts/quest_warper.txt
+++ b/npc/custom/eAAC_Scripts/quest_warper.txt
@@ -578,7 +578,7 @@ Zeny_short_SP:
L_Storage:
next;
- if(basicskillcheck(0) > 0 && getskilllv(1) < 6) goto L_StorageJBlow;
+ if(basicskillcheck() > 0 && getskilllv(1) < 6) goto L_StorageJBlow;
set @fee, $QW_S_PRICE;
if ($QW_S_PRICE == 60 && BaseJob == Job_Novice) set @fee, 30;
if(Zeny<@fee) callsub L_Short_on_zeny,2;
@@ -732,9 +732,9 @@ function script QWS_MMarray {
set @Mi,0; // That's our loop counter.
set @Mj,0; // That's the menu lines counter.
//----------------GameMaster-Menu
- if (getgmlevel(80)) set @Mmenulist$[@Mj],@pMmenuitems$[@Mi];
- if (getgmlevel(80)) set @Mmenuref[@Mj],@Mi;
- if (getgmlevel(80)) set @Mj,@Mj+1;
+ if (getgmlevel()>=80) set @Mmenulist$[@Mj],@pMmenuitems$[@Mi];
+ if (getgmlevel()>=80) set @Mmenuref[@Mj],@Mi;
+ if (getgmlevel()>=80) set @Mj,@Mj+1;
set @Mi,@Mi+1;
//----------------Special-Warp
callfunc "QWS_TownStamps";