comodo_gambling.txt 24 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565
  1. //===== rAthena Script =======================================
  2. //= Comodo Gambling
  3. //===== By: ==================================================
  4. //= Reddozen, Cypress, Zefris
  5. //===== Current Version: =====================================
  6. //= 1.4c
  7. //===== Compatible With: =====================================
  8. //= rAthena Project
  9. //===== Description: =========================================
  10. //= Comodo Gambling: Win random Items with 3 Carat Diamonds.
  11. //===== Additional Comments: =================================
  12. //= 0.1- so far just a basic setup, and working on the function
  13. //= 0.2- fixed some spelling errors and set zeny,zeny - (@amount * 55000)[Cypress]
  14. //= 0.3- Revised the gambling NPC using the official Aegis script [MasterOfMuppets]
  15. //= for information. Thanks to Zefris for doing it for me.
  16. //= 0.4- Fixed an exploit. thanks to reddozen [MasterOfMuppets]
  17. //= 0.5- Moved item check to the proper place [Lupus]
  18. //= 1.0- Synced the script with aegis and reformatted it for readability [ultramage]
  19. //= Corrected the npc giving you Cotton Shirt instead of Adventurer's Suit[1]
  20. //= Added comments to items so people know what the NPC is about
  21. //= Added missing emotions and cutins
  22. //= 1.1- Updated prizes according to 11.1 NPC [Paradox924X]
  23. //= 1.2 Corrected NPC names to fall within proper restrictions. [L0ne_W0lf]
  24. //= 1.3 Added missing item. [Kisuka]
  25. //= 1.4 Updated Script to match AEGIS file. [Masao]
  26. //= 1.4a Minor script updates. [Euphy]
  27. //= 1.4b Minor fix about Weight and miscs updates. [Capuche]
  28. //= 1.4c Another clean-up. [Capuche]
  29. //============================================================
  30. comodo,219,158,6 script Kachua 4_F_02,{
  31. if (checkweight(1201,1) == 0) {
  32. 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";
  33. close;
  34. }
  35. cutin "katsua01.bmp",2;
  36. mes "[Kachua]";
  37. mes "Diamonds...!";
  38. mes "I simply can't get my mind off";
  39. mes "them! Ever since that man";
  40. mes "showed me that diamond,";
  41. mes "it's been all I think about!";
  42. next;
  43. if (select("Would you like to have mine?", "Ah, what a shame...") == 2) {
  44. mes "[Kachua]";
  45. mes "Yes, I know...";
  46. mes "Even among everything";
  47. mes "in my collections, nothing";
  48. mes "compares to diamonds...";
  49. close2;
  50. cutin "katsua01.bmp",255;
  51. end;
  52. }
  53. if (countitem(732) == 0) {
  54. cutin "katsua01.bmp",255;
  55. cutin "katsua03.bmp",2;
  56. mes "[Kachua]";
  57. mes "*piff*";
  58. mes "You don't have any diamonds!";
  59. mes "Don't even try to fool me!";
  60. close2;
  61. cutin "katsua03.bmp",255;
  62. end;
  63. }
  64. mes "[Kachua]";
  65. mes "Are you sure you don't mind";
  66. mes "giving this to me? Thank you";
  67. mes "so much! I don't have much in";
  68. mes "the way of money, but i can give";
  69. mes "you something from one of my";
  70. mes "collections~";
  71. next;
  72. if (MaxWeight - Weight < 5500) {
  73. cutin "katsua01.bmp",255;
  74. cutin "katsua03.bmp",2;
  75. mes "[Kachua]";
  76. mes "Errr...";
  77. mes "You brought too many things.";
  78. mes "You can't receive this item now.";
  79. mes "You better reorganize your inventory and try again.";
  80. close2;
  81. cutin "katsua03.bmp",255;
  82. end;
  83. }
  84. if (countitem(732) == 0) { // anti-hack
  85. logmes "Hack: Tried to bypass item check.";
  86. cutin "katsua01.bmp",255;
  87. close;
  88. }
  89. delitem 732,1;
  90. mes "[Kachua]";
  91. mes "So what would";
  92. mes "you like to have?";
  93. next;
  94. switch (select("Weapon", "Armor", "Garment", "Helmet", "Shoes", "Shield")) {
  95. case 1: // Weapons
  96. .@gamble1 = rand(1,1000);
  97. if (.@gamble1 > 920 && .@gamble1 < 931) {
  98. .@gamble2 = rand(1,85);
  99. if (.@gamble2 == 1) .@item = 1128; // Haedonggum[2]
  100. else if (.@gamble2 == 2) .@item = 1120; // Tsurugi[2]
  101. else if (.@gamble2 == 3) .@item = 1127; // Saber[3]
  102. else if (.@gamble2 == 4) .@item = 1158; // Two-Handed Sword[2]
  103. else if (.@gamble2 == 5) .@item = 1155; // Bastard Sword[3]
  104. else if (.@gamble2 == 6) .@item = 1220; // Gladius[3]
  105. else if (.@gamble2 == 7) .@item = 1222; // Damascus[1]
  106. else if (.@gamble2 == 8) .@item = 1253; // Katar[2]
  107. else if (.@gamble2 == 9) .@item = 1529; // Iron Driver
  108. else if (.@gamble2 == 10) .@item = 1251; // Jur[3]
  109. else if (.@gamble2 == 11) .@item = 1361; // Two-Handed Axe[2]
  110. else if (.@gamble2 == 12) .@item = 1258; // Katar of Raging Blaze
  111. else if (.@gamble2 == 13) .@item = 1257; // Katar of Quaking
  112. else if (.@gamble2 == 14) .@item = 1256; // Katar of Frozen Icicle
  113. else if (.@gamble2 == 15) .@item = 1259; // Katar of Piercing Wind
  114. else if (.@gamble2 == 16) .@item = 1260; // Sharpened Legbone of Ghoul
  115. else if (.@gamble2 == 17) .@item = 1716; // Gakkung Bow[2]
  116. else if (.@gamble2 == 18) .@item = 1715; // Arbalest[2]
  117. else if (.@gamble2 == 19) .@item = 1711; // Crossbow[3]
  118. else if (.@gamble2 == 20) .@item = 1702; // Bow[4]
  119. else if (.@gamble2 == 21) .@item = 1520; // Chain[3]
  120. else if (.@gamble2 == 22) .@item = 1610; // Arc Wand[1]
  121. else if (.@gamble2 == 23) .@item = 1615; // Evil Bone Wand
  122. else if (.@gamble2 == 24) .@item = 1602; // Rod[4]
  123. else if (.@gamble2 == 25) .@item = 1461; // Trident[3]
  124. else if (.@gamble2 == 26) .@item = 1402; // Javelin[4]
  125. else if (.@gamble2 == 27) .@item = 1961; // Whip[2]
  126. else if (.@gamble2 == 28) .@item = 1957; // Rante Whip[1]
  127. else if (.@gamble2 == 29) .@item = 1552; // Tablet[1]
  128. else if (.@gamble2 == 30) .@item = 1551; // Bible[2]
  129. else if (.@gamble2 == 31) .@item = 1553; // Book of Billows
  130. else if (.@gamble2 == 32) .@item = 1554; // Book of Mother Earth
  131. else if (.@gamble2 == 33) .@item = 1555; // Book of the Blazing Sun
  132. else if (.@gamble2 == 34) .@item = 1556; // Book of Gust of Wind
  133. else if (.@gamble2 == 35) .@item = 1951; // Rope[4]
  134. else if (.@gamble2 == 36) .@item = 1959; // Tail Whip[2]
  135. else if (.@gamble2 == 37) .@item = 1953; // Whip[3]
  136. else if (.@gamble2 == 38) .@item = 1955; // Wire Whip[3]
  137. else if (.@gamble2 == 39) .@item = 1810; // Claw[2]
  138. else if (.@gamble2 == 40) .@item = 1910; // Harp[2]
  139. else if (.@gamble2 == 41) .@item = 1906; // Lute[3]
  140. else if (.@gamble2 == 42) .@item = 1902; // Violin[4]
  141. else if (.@gamble2 == 43) .@item = 1904; // Mandolin[3]
  142. else if (.@gamble2 == 44) .@item = 1912; // Gumoongoh[2]
  143. else if (.@gamble2 == 45) .@item = 1908; // Guitar[1]
  144. else if (.@gamble2 == 46) .@item = 1808; // Fist[1]
  145. else if (.@gamble2 == 47) .@item = 1802; // Waghnak[4]
  146. else if (.@gamble2 == 48) .@item = 1812; // Finger[2]
  147. else if (.@gamble2 == 49) .@item = 1806; // Studded Knuckles[3]
  148. else if (.@gamble2 == 50) .@item = 1804; // Knuckle Duster[3]
  149. else if (.@gamble2 == 51) .@item = 1550; // Book[3]
  150. else if (.@gamble2 == 52) .@item = 1246; // Cinquedea[2]
  151. else if (.@gamble2 == 53) .@item = 1147; // Town Sword
  152. else if (.@gamble2 < 56) .@item = 1264; // Specialty Jur[4]
  153. else if (.@gamble2 < 58) .@item = 1262; // Loki's Nail
  154. else if (.@gamble2 < 60) .@item = 1622; // Hypnotist's Staff[2]
  155. else if (.@gamble2 == 60) .@item = 1723;// Luna Bow[2]
  156. else if (.@gamble2 < 63) .@item = 1965; // Red Flame Whip
  157. else if (.@gamble2 < 65) .@item = 1966; // Icicle Whip
  158. else if (.@gamble2 < 67) .@item = 1967; // Gaia Whip
  159. else if (.@gamble2 < 69) .@item = 1968; // Skipping Rope
  160. else if (.@gamble2 < 71) .@item = 1914; // Burning Passion Guitar
  161. else if (.@gamble2 < 73) .@item = 1915; // Loner's Guitar
  162. else if (.@gamble2 < 75) .@item = 1916; // Green Acre Guitar
  163. else if (.@gamble2 < 77) .@item = 1917; // Gentle Breeze Guitar
  164. else if (.@gamble2 < 79) .@item = 13004; // Cowardice Blade[2]
  165. else if (.@gamble2 < 81) .@item = 1307; // Windhawk
  166. else if (.@gamble2 == 81) .@item = 1560; // Sage's Diary[2]
  167. else if (.@gamble2 == 82) .@item = 1618; // Survivor's Rod[1]
  168. else if (.@gamble2 == 83) .@item = 1620; // Survivor's Rod[1]
  169. else if (.@gamble2 < 86) .@item = 1971; // Electric Wire
  170. }
  171. else if (.@gamble1 < 201) .@item = 1201; // Knife[3]
  172. else if (.@gamble1 < 301) .@item = 1101; // Sword[3]
  173. else if (.@gamble1 < 401) .@item = 1601; // Rod[3]
  174. else if (.@gamble1 < 501) .@item = 1116; // Katana[3]
  175. else if (.@gamble1 < 601) .@item = 1250; // Jur[2]
  176. else if (.@gamble1 < 701) .@item = 1301; // Axe[3]
  177. else if (.@gamble1 < 801) .@item = 1701; // Bow[3]
  178. else if (.@gamble1 < 851) .@item = 1504; // Mace[3]
  179. else if (.@gamble1 < 901) .@item = 1604; // Wand[2]
  180. else if (.@gamble1 < 911) .@item = 1108; // Blade[4]
  181. else if (.@gamble1 < 921) .@item = 1163; // Claymore
  182. else if (.@gamble1 < 961) .@item = 1522; // Stunner
  183. else if (.@gamble1 < 971) .@item = 1608; // Staff[3]
  184. else if (.@gamble1 < 981) .@item = 1408; // Pike[4]
  185. else if (.@gamble1 < 991) .@item = 1452; // Guisarme[3]
  186. else if (.@gamble1 < 1001) .@item = 1208; // Main Gauche[4]
  187. break;
  188. case 2: // Armors
  189. .@gamble1 = rand(1,500);
  190. if (.@gamble1 > 299 && .@gamble1 < 303) {
  191. .@gamble2 = rand(1,30);
  192. if (.@gamble2 < 3) .@item = 2315; // Chain Mail[1]
  193. else if (.@gamble2 < 5) .@item = 2336; // Thief Clothes[1]
  194. else if (.@gamble2 < 7) .@item = 2318; // Lord's Clothes[1]
  195. else if (.@gamble2 < 9) .@item = 2326; // Saint's Robe[1]
  196. else if (.@gamble2 < 11) .@item = 2327; // Holy Robe
  197. else if (.@gamble2 < 13) .@item = 2342; // Legion Plate Armor[1]
  198. else if (.@gamble2 < 15) .@item = 2331; // Tights[1]
  199. else if (.@gamble2 < 17) .@item = 2342; // Legion Plate Armor[1]
  200. else if (.@gamble2 < 19) .@item = 2311; // Mink Coat[1]
  201. else if (.@gamble2 < 21) .@item = 2320; // Formal Suit[1]
  202. else if (.@gamble2 < 23) .@item = 2319; // Glittering Jacket[1]
  203. else if (.@gamble2 < 25) .@item = 2344; // Lucius's Fierce Armor of Volcano
  204. else if (.@gamble2 < 27) .@item = 2346; // Saphien's Armor of Ocean
  205. else if (.@gamble2 < 29) .@item = 2348; // Aebeccee's Raging Typhoon Armor
  206. else if (.@gamble2 < 31) .@item = 2350; // Claytos Cracking Earth Armor
  207. }
  208. else if (.@gamble1 < 51) .@item = 2301; // Cotton Shirt
  209. else if (.@gamble1 < 101) .@item = 2302; // Cotton Shirt[1]
  210. else if (.@gamble1 < 151) .@item = 2303; // Jacket
  211. else if (.@gamble1 < 201) .@item = 2304; // Jacket[1]
  212. else if (.@gamble1 < 251) .@item = 2305; // Adventurer's Suit
  213. else if (.@gamble1 < 300) .@item = 2301; // Cotton Shirt
  214. else if (.@gamble1 < 351) .@item = 2307; // Mantle
  215. else if (.@gamble1 < 401) .@item = 2309; // Coat
  216. else if (.@gamble1 < 402) .@item = 2322; // Silk Robe[1]
  217. else if (.@gamble1 < 403) .@item = 2310; // Coat[1]
  218. else if (.@gamble1 < 411) .@item = 2306; // Adventurer's Suit[1]
  219. else if (.@gamble1 < 416) .@item = 2308; // Mantle[1]
  220. else if (.@gamble1 < 421) .@item = 2313; // Padded Armor[1]
  221. else if (.@gamble1 < 426) .@item = 2337; // Ninja Suit
  222. else if (.@gamble1 < 431) .@item = 2341; // Legion Plate Armor
  223. else if (.@gamble1 < 436) .@item = 2325; // Saint's Robe
  224. else if (.@gamble1 < 441) .@item = 2317; // Full Plate
  225. else if (.@gamble1 < 446) .@item = 2330; // Tights
  226. else if (.@gamble1 < 451) .@item = 2314; // Chain Mail
  227. else if (.@gamble1 < 456) .@item = 2335; // Thief Clothes
  228. else if (.@gamble1 < 461) .@item = 2324; // Scapulare[1]
  229. else if (.@gamble1 < 466) .@item = 2329; // Wooden Mail[1]
  230. else if (.@gamble1 < 471) .@item = 2340; // Novice Breastplate[1]
  231. else if (.@gamble1 < 476) .@item = 2312; // Padded Armor
  232. else if (.@gamble1 < 481) .@item = 2339; // Pantie
  233. else if (.@gamble1 < 486) .@item = 2328; // Wooden Mail
  234. else if (.@gamble1 < 491) .@item = 2321; // Silk Robe
  235. else if (.@gamble1 < 501) .@item = 2323; // Scapulare
  236. break;
  237. case 3: // Garments
  238. .@gamble1 = rand(1,500);
  239. if (.@gamble1 > 200 && .@gamble1 < 204) {
  240. .@gamble2 = rand(1,16);
  241. if (.@gamble2 < 3) .@item = 2506; // Manteau[1]
  242. else if (.@gamble2 < 5) .@item = 2504; // Muffler[1]
  243. else if (.@gamble2 < 8) .@item = 2508; // Ragamuffin Manteau
  244. else if (.@gamble2 < 11) .@item = 2507; // Ancient Cape
  245. else if (.@gamble2 == 11) .@item = 2513; // Heavenly Maiden Robe[1]
  246. else if (.@gamble2 == 12) .@item = 2514; // Pauldron[1]
  247. else if (.@gamble2 == 13) .@item = 2523; // Undershirt[1]
  248. else if (.@gamble2 == 14) .@item = 2530; // Rider Insigna[1]
  249. else if (.@gamble2 == 15) .@item = 2509; // Survivor's Manteau
  250. else if (.@gamble2 == 16) .@item = 2515; // Eagle Wing[1]
  251. }
  252. else if (.@gamble1 < 101) .@item = 2503; // Muffler
  253. else if (.@gamble1 < 201) .@item = 2505; // Manteau
  254. else if (.@gamble1 < 451) .@item = 2501; // Hood
  255. else if (.@gamble1 < 501) .@item = 2502; // Hood[1]
  256. break;
  257. case 4: // Headgears
  258. .@gamble1 = rand(1,1000);
  259. if (.@gamble1 > 299 && .@gamble1 < 304) {
  260. .@gamble2 = rand(1,93);
  261. if (.@gamble2 < 3) .@item = 2251; // Monk Hat
  262. else if (.@gamble2 < 5) .@item = 2285; // Apple of Archer
  263. else if (.@gamble2 < 7) .@item = 2255; // Evil Wing
  264. else if (.@gamble2 < 9) .@item = 5045; // Magician Hat
  265. else if (.@gamble2 < 11) .@item = 2233; // Circlet[1]
  266. else if (.@gamble2 < 13) .@item = 2231; // Gemmed Sallet[1]
  267. else if (.@gamble2 < 15) .@item = 2217; // Biretta[1]
  268. else if (.@gamble2 < 17) .@item = 2206; // Wedding Veil
  269. else if (.@gamble2 < 19) .@item = 2246; // Golden Gear
  270. else if (.@gamble2 < 21) .@item = 2261; // Army Cap
  271. else if (.@gamble2 < 23) .@item = 2287; // Pirate Bandana
  272. else if (.@gamble2 < 25) .@item = 5012; // Ph.D Hat
  273. else if (.@gamble2 < 27) .@item = 2244; // Big Ribbon
  274. else if (.@gamble2 < 29) .@item = 2213; // Kitty Band
  275. else if (.@gamble2 < 31) .@item = 2248; // Western Grace
  276. else if (.@gamble2 < 33) .@item = 2223; // Turban[1]
  277. else if (.@gamble2 < 35) .@item = 2247; // Romantic Gent
  278. else if (.@gamble2 < 37) .@item = 2245; // Sweet Gent
  279. else if (.@gamble2 < 39) .@item = 5003; // Joker Jester
  280. else if (.@gamble2 < 41) .@item = 2225; // Goggles[1]
  281. else if (.@gamble2 < 43) .@item = 5017; // Bone Helm
  282. else if (.@gamble2 < 45) .@item = 5030; // Panda Hat
  283. else if (.@gamble2 < 47) .@item = 5035; // Poring Hat
  284. else if (.@gamble2 < 49) .@item = 2250; // Cute Ribbon
  285. else if (.@gamble2 < 51) .@item = 2277; // Nurse Cap
  286. else if (.@gamble2 < 53) .@item = 5011; // Aerial
  287. else if (.@gamble2 < 55) .@item = 2290; // Funeral Hat
  288. else if (.@gamble2 < 57) .@item = 5010; // Indian Fillet
  289. else if (.@gamble2 < 60) .@item = 2259; // Mini Propeller
  290. else if (.@gamble2 < 62) .@item = 5008; // Puppy Love
  291. else if (.@gamble2 < 63) .@item = 2249; // Coronet
  292. else if (.@gamble2 < 65) .@item = 2229; // Helm[1]
  293. else if (.@gamble2 == 65) .@item = 2258; // Spiky Band
  294. else if (.@gamble2 == 66) .@item = 2274; // Ghost Bandana
  295. else if (.@gamble2 == 67) .@item = 5019; // Corsair
  296. else if (.@gamble2 == 68) .@item = 2254; // Angel Wing
  297. else if (.@gamble2 == 69) .@item = 5007; // Grand Circlet
  298. else if (.@gamble2 == 70) .@item = 5066; // Succubus Horn
  299. else if (.@gamble2 == 71) .@item = 2235; // Crown
  300. else if (.@gamble2 == 72) .@item = 2234; // Tiara
  301. else if (.@gamble2 == 73) .@item = 2256; // Majestic Goat
  302. else if (.@gamble2 == 74) .@item = 5093; // Coif[1]
  303. else if (.@gamble2 == 75) .@item = 5072; // Incubus Horn
  304. else if (.@gamble2 == 76) .@item = 5002; // Jewel Crown
  305. else if (.@gamble2 < 80) .@item = 5118; // Puppy Headband
  306. else if (.@gamble2 < 83) .@item = 5120; // Bucket Hat[1]
  307. else if (.@gamble2 < 86) .@item = 5111; // Galapago Cap
  308. else if (.@gamble2 < 89) .@item = 5116; // Banana Hat
  309. else if (.@gamble2 < 92) .@item = 5119; // Super Novice Hat[1]
  310. else if (.@gamble2 < 94) .@item = 5141; // Marionetta Doll[1]
  311. }
  312. else if (.@gamble1 < 101) .@item = 2226; // Cap
  313. else if (.@gamble1 < 201) .@item = 2211; // Bandana
  314. else if (.@gamble1 < 300) .@item = 2209; // Ribbon[1]
  315. else if (.@gamble1 < 401) .@item = 2220; // Hat
  316. else if (.@gamble1 < 501) .@item = 2232; // Circlet
  317. else if (.@gamble1 < 601) .@item = 2216; // Biretta
  318. else if (.@gamble1 < 701) .@item = 2230; // Gemmed Sallet
  319. else if (.@gamble1 < 801) .@item = 2224; // Goggles
  320. else if (.@gamble1 < 901) .@item = 2222; // Turban
  321. else if (.@gamble1 < 906) .@item = 2228; // Helm
  322. else if (.@gamble1 < 911) .@item = 2252; // Wizard Hat
  323. else if (.@gamble1 < 916) .@item = 2227; // Cap[1]
  324. else if (.@gamble1 < 921) .@item = 2221; // Hat[1]
  325. else if (.@gamble1 < 926) .@item = 2299; // Orc Helm
  326. else if (.@gamble1 < 931) .@item = 2236; // Santa Hat
  327. else if (.@gamble1 < 936) .@item = 2275; // Red Bandana
  328. else if (.@gamble1 < 941) .@item = 5015; // Egg Shell
  329. else if (.@gamble1 < 946) .@item = 2215; // Flower Band
  330. else if (.@gamble1 < 951) .@item = 5092; // Coif
  331. else if (.@gamble1 < 1001) .@item = 2226; // Cap
  332. break;
  333. case 5: // Footgear
  334. .@gamble1 = rand(1,500);
  335. if (.@gamble1 > 299 && .@gamble1 < 303) {
  336. .@gamble2 = rand(1,10);
  337. if (.@gamble2 < 3) .@item = 2406; // Boots[1]
  338. else if (.@gamble2 < 5) .@item = 2412; // Greaves[1]
  339. else if (.@gamble2 < 8) .@item = 2404; // Shoes[1]
  340. else if (.@gamble2 < 11) .@item = 2407; // Crystal Pumps
  341. }
  342. else if (.@gamble1 < 201) .@item = 2401; // Sandals
  343. else if (.@gamble1 < 300) .@item = 2408; // Shackles
  344. else if (.@gamble1 < 351) .@item = 2411; // Greaves
  345. else if (.@gamble1 < 401) .@item = 2403; // Shoes
  346. else if (.@gamble1 < 451) .@item = 2405; // Boots
  347. else if (.@gamble1 < 476) .@item = 2409; // High Heels
  348. else if (.@gamble1 < 501) .@item = 2402; // Sandals[1]
  349. break;
  350. case 6: // Shields
  351. .@gamble1 = rand(1,500);
  352. if (.@gamble1 > 200 && .@gamble1 < 205) {
  353. .@gamble2 = rand(1,10);
  354. if (.@gamble2 < 3) .@item = 2104; // Buckler[1]
  355. else if (.@gamble2 < 5) .@item = 2106; // Shield[1]
  356. else if (.@gamble2 < 7) .@item = 2102; // Guard[1]
  357. else if (.@gamble2 < 9) .@item = 2111; // Sacred Mission
  358. else if (.@gamble2 < 11) .@item = 2109; // Memory Book
  359. }
  360. else if (.@gamble1 < 201) .@item = 2101; // Guard
  361. else if (.@gamble1 < 301) .@item = 2103; // Buckler
  362. else if (.@gamble1 < 401) .@item = 2107; // Mirror Shield
  363. else if (.@gamble1 < 481) .@item = 2105; // Shield
  364. else if (.@gamble1 < 501) .@item = 2108; // Mirror Shield[1]
  365. break;
  366. default: // Cancel button / hack
  367. cutin "katsua01.bmp",255;
  368. close;
  369. break;
  370. }
  371. getitem .@item,1;
  372. cutin "katsua01.bmp",255;
  373. cutin "katsua02.bmp",2;
  374. mes "[Kachua]";
  375. mes "Ah~ that Diamond is so beautiful.";
  376. mes "I wish I could repay you better.";
  377. close2;
  378. cutin "katsua02.bmp",255;
  379. end;
  380. }
  381. comodo,204,148,7 script Devellin 4_F_01,{
  382. mes "[Devellin]";
  383. mes "It seems some traveller showed";
  384. mes "a huge diamond to Kachua a while ago. Ever since then, all she's been talking about is diamonds and how much she wants them.";
  385. next;
  386. mes "[Devellin]";
  387. mes "She's been getting pretty obsessive about it, which scares me. It seems she's more than willing to sacrifice anything she owns for a diamond.";
  388. next;
  389. mes "[Devellin]";
  390. mes "She's the type of person who'll do anything to get what she wants. I'm worried that she might give away something far more valuable than a diamond in exchange...";
  391. close;
  392. }
  393. comodo,210,154,2 script Suspicious Guy#cmd 2_M_THIEFMASTER,{
  394. if (BaseClass == Job_Thief){
  395. mes "[Cain]";
  396. mes "Heeeey...";
  397. mes "It seems we share the same line of work, you and me. Heh heh, lemme give you a hot tip.";
  398. next;
  399. mes "[Cain]";
  400. mes "I've been charging other people for this information, but since, shall we say, we work in the same professional field, I don't have the heart to take your zeny.";
  401. next;
  402. mes "[Cain]";
  403. mes "You see that lady over there?";
  404. mes "She's just totally in love with diamonds. And from what my sources tell me, she's loaded. Tons and tons of valuables.";
  405. next;
  406. mes "[Cain]";
  407. mes "I'm talkin' rare items.";
  408. mes "I took the liberty of sneaking a peek at what she owns, and saw she's got a helmet with goat horns and even a crown! She's so rich it's ridiculous!";
  409. next;
  410. mes "[Cain]";
  411. mes "The buzz that's been going around is that she's got a cache of rare equipment and weapons too! So whaddya say? Wanna be partners in crime and rob her house?";
  412. next;
  413. switch(select("No, thanks.:Sweet, I'm in!")){
  414. case 1:
  415. mes "[Cain]";
  416. mes "Wha...?";
  417. mes "C'mon! I thought pilfering was something you do! Aw well, I'm gonna do it, but stay hushed on this, got it?";
  418. close;
  419. case 2:
  420. mes "[Cain]";
  421. mes "Ha ha ha!";
  422. mes "...^660000Dork^000000!";
  423. mes "I'm just jivin'";
  424. mes "sp fuggedabout it!";
  425. next;
  426. mes "[Cain]";
  427. mes "Ah right. Supposedly, there's a mountain where tons of diamonds are buried. A pal o' mine says there's a mine near the mountain too, so I guess if you went to the mine, you'd find Diamonds.";
  428. next;
  429. mes "[Cain]";
  430. 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~";
  431. close;
  432. }
  433. }
  434. mes "[Cain]";
  435. mes "Hey...";
  436. mes "I got a hot tip for you.";
  437. mes "It'll just cost you 500 zeny";
  438. mes "and trust me, it's worth it.";
  439. mes "So whaddya say...?";
  440. next;
  441. switch(select("Alright.:No, thanks.")){
  442. case 1:
  443. if (Zeny > 499){
  444. mes "[Cain]";
  445. mes "You see that lady over there? She's just totally in love with diamonds. And from what my sources tell me, she's loaded. Tons and tons of valuables.";
  446. next;
  447. mes "[Cain]";
  448. mes "I'm talkin' rare items.";
  449. mes "I took the liberty of sneaking a peek at what she owns, and saw she's got a helmet with goat horns and even a crown! She's so rich it's ridiculous!";
  450. next;
  451. mes "[Cain]";
  452. mes "There's a chance that rare equipment and weapons might be yours! She'll give anything for a 3 carat diamond. So if you have any of those, you might as well see her.";
  453. next;
  454. mes "[Cain]";
  455. mes "Ah right. Supposedly, there's a mountain where tons of diamonds";
  456. mes "are buried. A pal o' mine says there's a mine near the mountain too, so I guess if you went to the mine, you'd find Diamonds.";
  457. next;
  458. mes "[Cain]";
  459. 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~";
  460. Zeny = Zeny-500;
  461. close;
  462. }
  463. mes "[Cain]";
  464. mes "What the hell?!";
  465. mes "Don't you have any money? Didn't I say 500 zeny? Hey man, info like this doesn't come cheap!";
  466. close;
  467. case 2:
  468. mes "[Cain]";
  469. mes "Hey hey!";
  470. mes "What are you, a cheapskate? You understand that everything has its price and this information is so worth it. C'mon, you can't pass this up, can you?";
  471. close;
  472. }
  473. }
  474. mjolnir_02,85,362,3 script Blacksmith Miner 4_F_JOB_BLACKSMITH,{
  475. if (checkweight(1201,1) == 0) {
  476. 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";
  477. close;
  478. }
  479. mes "[Dwayne]";
  480. mes "Wahahahaha~";
  481. mes "I've dug up a fortune!";
  482. next;
  483. mes "[Dwayne]";
  484. mes "Diamonds! Hundreds and";
  485. mes "thousands of Diamonds,";
  486. mes "all of them mine!";
  487. mes "I'm rich!";
  488. emotion ET_SMILE;
  489. next;
  490. switch(select("I want to buy some.:Congratulations.")){
  491. case 1:
  492. mes "[Dwayne]";
  493. mes "Ah, you have an";
  494. mes "eye for valuables!";
  495. mes "Sure, sure why not!";
  496. mes "I'll give you a discount, too!";
  497. mes "55,000 Zeny for a diamond,";
  498. mes "how does that sound?";
  499. next;
  500. mes "[Dwayne]";
  501. mes "How many";
  502. mes "diamonds do you need?";
  503. mes "If you change your mind,";
  504. mes "please enter '0' to cancel.";
  505. next;
  506. input .@amount;
  507. if (.@amount == 0){
  508. mes "[Dwayne]";
  509. mes "Alright, you've";
  510. mes "canceled the trade.";
  511. mes "Take care!";
  512. close;
  513. }else if (.@amount < 1 || .@amount > 500){
  514. mes "[Dwayne]";
  515. mes "The maximum";
  516. mes "amount is 500.";
  517. mes "Please enter 500 or less.";
  518. close;
  519. }
  520. .@cost = .@amount * 55000;
  521. .@weight = .@amount * 100;
  522. if (Zeny < .@cost){
  523. mes "[Dwayne]";
  524. mes "Errr...";
  525. mes "I'm sorry, but you";
  526. mes "do not have enough money.";
  527. mes "I'll be losing money if";
  528. mes "I sell them at that price.";
  529. close;
  530. }
  531. if ((MaxWeight - Weight) < .@weight){
  532. mes "[Dwayne]";
  533. mes "Errr...";
  534. mes "You're carrying too many items.";
  535. 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?";
  536. close;
  537. }
  538. Zeny = Zeny - .@cost;
  539. getitem 732,.@amount;
  540. mes "[Dwayne]";
  541. mes "Thank you for";
  542. mes "buying my diamonds!";
  543. mes "You're welcome to";
  544. mes "come back anytime.";
  545. close;
  546. case 2:
  547. mes "[Dwayne]";
  548. mes "Haha, thank you~";
  549. mes "If by any chance";
  550. mes "you need a diamond,";
  551. mes "please drop by.";
  552. mes "I'll sell them to";
  553. mes "you at a cheap price.";
  554. close;
  555. }
  556. }