diff options
Diffstat (limited to 'npc/other/comodo_gambling.txt')
-rw-r--r-- | npc/other/comodo_gambling.txt | 45 |
1 files changed, 24 insertions, 21 deletions
diff --git a/npc/other/comodo_gambling.txt b/npc/other/comodo_gambling.txt index 188066181..28a2e799d 100644 --- a/npc/other/comodo_gambling.txt +++ b/npc/other/comodo_gambling.txt @@ -3,12 +3,12 @@ //===== By: ================================================== //= Reddozen, Cypress, Zefris //===== Current Version: ===================================== -//= 1.4 +//= 1.4a //===== Description: ========================================= //= Comodo Gambling: Win random Items with 3 Carat Diamonds. //===== Additional Comments: ================================= //= 0.1- so far just a basic setup, and working on the function -//= 0.2- fixed some spelling errors and set zeny,zeny - (@amount * 55000)[Cypress] +//= 0.2- fixed some spelling errors and Zeny -= (@amount * 55000)[Cypress] //= 0.3- Revised the gambling NPC using the official Aegis script [MasterOfMuppets] //= for information. Thanks to Zefris for doing it for me. //= 0.4- Fixed an exploit. thanks to reddozen [MasterOfMuppets] @@ -21,10 +21,15 @@ //= 1.2 Corrected NPC names to fall within proper restrictions. [L0ne_W0lf] //= 1.3 Added missing item. [Kisuka] //= 1.4 Updated Script to match AEGIS file. [Masao] -//============================================================ +//= 1.4a Minor script updates. [Euphy] +//============================================================ -comodo,219,158,6 script Kachua 91,{ +comodo,219,158,6 script Kachua 4_F_02,{ + if (checkweight(1201,1) == 0) { + mes "^3355FFWait a second! Right now, you're carrying too many items with you. Please come back after putting some of your things into Kafra Storage.^000000"; + close; + } cutin "katsua01.bmp",2; mes "[Kachua]"; @@ -45,7 +50,7 @@ comodo,219,158,6 script Kachua 91,{ cutin "katsua01.bmp",255; end; } - + if (countitem(732) == 0) { cutin "katsua01.bmp",255; cutin "katsua03.bmp",2; @@ -57,7 +62,7 @@ comodo,219,158,6 script Kachua 91,{ cutin "katsua03.bmp",255; end; } - + mes "[Kachua]"; mes "Are you sure you don't mind"; mes "giving this to me? Thank you"; @@ -67,7 +72,7 @@ comodo,219,158,6 script Kachua 91,{ mes "collections~"; next; - if (Weight >= MaxWeight/2) { + if (MaxWeight - Weight < 5500) { cutin "katsua01.bmp",255; cutin "katsua03.bmp",2; mes "[Kachua]"; @@ -79,21 +84,21 @@ comodo,219,158,6 script Kachua 91,{ cutin "katsua03.bmp",255; end; } - + if (countitem(732) == 0) { // anti-hack logmes "Hack: Tried to bypass item check."; cutin "katsua01.bmp",255; close; } delitem 732,1; - + mes "[Kachua]"; mes "So what would"; mes "you like to have?"; next; - + switch (select("Weapon", "Armor", "Garment", "Helmet", "Shoes", "Shield")) { - + case 1: // Weapons set .@gamble1,rand(1,1000); if ((.@gamble1 > 920) && (.@gamble1 < 931)) { @@ -387,7 +392,7 @@ comodo,219,158,6 script Kachua 91,{ end; } -comodo,204,148,7 script Devellin 90,{ +comodo,204,148,7 script Devellin 4_F_01,{ mes "[Devellin]"; mes "It seems some traveller showed"; @@ -401,7 +406,7 @@ comodo,204,148,7 script Devellin 90,{ close; } -comodo,210,154,2 script Suspicious Guy#cmd 118,{ +comodo,210,154,2 script Suspicious Guy#cmd 2_M_THIEFMASTER,{ if (BaseClass == Job_Thief){ mes "[Cain]"; @@ -469,7 +474,7 @@ comodo,210,154,2 script Suspicious Guy#cmd 118,{ next; mes "[Cain]"; mes "I guess it can't hurt to gather some Diamonds there and try to exchange them for whatever the old lady's got. Take care, pal~"; - set Zeny,Zeny-500; + Zeny -= 500; close; } mes "[Cain]"; @@ -484,11 +489,9 @@ comodo,210,154,2 script Suspicious Guy#cmd 118,{ } } -mjolnir_02,85,362,3 script Blacksmith Miner 726,{ +mjolnir_02,85,362,3 script Blacksmith Miner 4_F_JOB_BLACKSMITH,{ - if(checkweight(1201,1) == 0) - { - mes "[Kachua]"; + if (checkweight(1201,1) == 0) { mes "^3355FFWait a second! Right now, you're carrying too many items with you. Please come back after putting some of your things into Kafra Storage.^000000"; close; } @@ -501,7 +504,7 @@ mjolnir_02,85,362,3 script Blacksmith Miner 726,{ mes "thousands of Diamonds,"; mes "all of them mine!"; mes "I'm rich!"; - emotion 18; + emotion e_heh; next; switch(select("I want to buy some.:Congratulations.")){ case 1: @@ -551,7 +554,7 @@ mjolnir_02,85,362,3 script Blacksmith Miner 726,{ mes "I don't think give you anything if there's no room in your inventory. Why don't you put some of your stuff into Kafra Storage?"; close; } - set Zeny,Zeny - .@cost; + Zeny -= .@cost; getitem 732,.@amount; mes "[Dwayne]"; mes "Thank you for"; @@ -569,4 +572,4 @@ mjolnir_02,85,362,3 script Blacksmith Miner 726,{ mes "you at a cheap price."; close; } -}
\ No newline at end of file +} |