diff options
Diffstat (limited to 'db/pre-re/item_db.conf')
-rw-r--r-- | db/pre-re/item_db.conf | 38 |
1 files changed, 20 insertions, 18 deletions
diff --git a/db/pre-re/item_db.conf b/db/pre-re/item_db.conf index 13ba79318..cbd28b8b6 100644 --- a/db/pre-re/item_db.conf +++ b/db/pre-re/item_db.conf @@ -67027,15 +67027,16 @@ item_db: ( sitting: true } Script: <" - if (rand(1,10) == 1) itemskill AL_TELEPORT,1; - else if (rand(1,10) == 2) itemskill AL_TELEPORT,3; - else if (rand(1,10) == 3) percentheal 50,0; - else if (rand(1,10) == 4) percentheal 0,50; - else if (rand(1,10) == 5) percentheal 50,50; - else if (rand(1,10) == 6) getitem Apple,1; - else if (rand(1,10) == 7) itemskill ALL_REVERSEORCISH,1; - else if (rand(1,10) == 8) specialeffect2 EF_MAPPILLAR2; - else if (rand(1,10) == 9) specialeffect2 EF_ANGEL2; + .@i = rand(1,10); + if (.@i == 1) itemskill AL_TELEPORT,1; + else if (.@i == 2) itemskill AL_TELEPORT,3; + else if (.@i == 3) percentheal 50,0; + else if (.@i == 4) percentheal 0,50; + else if (.@i == 5) percentheal 50,50; + else if (.@i == 6) getitem Apple,1; + else if (.@i == 7) itemskill ALL_REVERSEORCISH,1; + else if (.@i == 8) specialeffect2 EF_MAPPILLAR2; + else if (.@i == 9) specialeffect2 EF_ANGEL2; else specialeffect2 EF_COIN; "> }, @@ -67055,15 +67056,16 @@ item_db: ( sitting: true } Script: <" - if (rand(1,10) == 1) itemskill TF_DETOXIFY,1; - else if (rand(1,10) == 2) itemskill TF_PICKSTONE,1; - else if (rand(1,10) == 3) itemskill BA_FROSTJOKER,1; - else if (rand(1,10) == 4) itemskill DC_SCREAM,1; - else if (rand(1,10) == 5) percentheal 50,50; - else if (rand(1,10) == 6) getitem Jellopy,1; - else if (rand(1,10) == 7) itemskill AL_RUWACH,1; - else if (rand(1,10) == 8) specialeffect2 EF_BEGINASURA; - else if (rand(1,10) == 9) specialeffect2 EF_MVP; + .@i = rand(1,10); + if (.@i == 1) itemskill TF_DETOXIFY,1; + else if (.@i == 2) itemskill TF_PICKSTONE,1; + else if (.@i == 3) itemskill BA_FROSTJOKER,1; + else if (.@i == 4) itemskill DC_SCREAM,1; + else if (.@i == 5) percentheal 50,50; + else if (.@i == 6) getitem Jellopy,1; + else if (.@i == 7) itemskill AL_RUWACH,1; + else if (.@i == 8) specialeffect2 EF_BEGINASURA; + else if (.@i == 9) specialeffect2 EF_MVP; else specialeffect2 EF_CURSEATTACK; "> }, |