socket_enchant.txt 21 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844
  1. //===== eAthena Script =======================================
  2. //= Socket Enchant
  3. //===== By: ==================================================
  4. //= Sousuke_PL
  5. //===== Current Version: =====================================
  6. //= 0.2
  7. //===== Compatible With: =====================================
  8. //= eAthena SVN
  9. //===== Description: =========================================
  10. //= item loses all element refinement and upgrades but
  11. //= cards too?
  12. //===== Additional Comments: =================================
  13. //= 0.1a added missing L_No: to 2 funcs [Lupus]
  14. //= 0.1b Removed duplicates [Toms]
  15. //= 0.2 Added missing next;'s [Evera]
  16. //============================================================
  17. lhz_in02.gat,281,35,5 script Socket Enchant 84,{
  18. mes "[Socket Enchant]";
  19. mes "Hello.";
  20. mes "How can I help you?";
  21. next;
  22. menu "Upgrade my item",-,"Nothing",L_Not;
  23. mes "[Socket Enchant]";
  24. mes "This is weapon or armor?";
  25. next;
  26. menu "Weapon",L_Weapon1,"Armor",L_Armor1;
  27. //============================================================
  28. //= Weapon
  29. //============================================================
  30. L_WaepJump:
  31. mes "[Socket Enchant]";
  32. mes "Choose the number of page. Type 1 to 5:";
  33. next;
  34. input @weapsite;
  35. if(@weapsite > 5 || @weapsite < 1) goto L_WaepJump;
  36. if(@weapsite == 1) goto L_Weapon1;
  37. if(@weapsite == 2) goto L_Weapon2;
  38. if(@weapsite == 3) goto L_Weapon3;
  39. if(@weapsite == 4) goto L_Weapon4;
  40. if(@weapsite == 5) goto L_Weapon5;
  41. L_Weapon1:
  42. close2;
  43. mes "[Socket Enchant]";
  44. mes "Please choose your item:";
  45. next;
  46. menu "Trident[2]",Trident,"Rope[3]",Rope,"Violin[3]",Violin,"Chain[2]",Chain,"Gladius[2]",Gladius,"Gakkung Bow[1]",Gakkung_Bow,"Next",L_Weapon2,"Jump to page...",L_WaepJump;
  47. L_Weapon2:
  48. close2;
  49. mes "[Socket Enchant]";
  50. mes "Please choose your item:";
  51. next;
  52. menu "Pike[3]",Pike,"Haedonggum[1]",Haedonggum,"Lute[2]",Lute,"Wire Whip[2]",Wire_Whip,"Waghnak[3]",Waghnak,"Arbalest[1]",Arbalest,"Next",L_Weapon3,"Jump to page...",L_WaepJump;
  53. L_Weapon3:
  54. close2;
  55. mes "[Socket Enchant]";
  56. mes "Please choose your item:";
  57. next;
  58. menu "Hunter Bow",Hunter_Bow,"(Int) Survivor's Rod",Int_Survivors_Rod,"Zweihander",Zweihander,"Flamberge",Flamberge,"Infiltrator",Infiltrator,"Ballista",Ballista,"Next",L_Weapon4,"Jump to page...",L_WaepJump;
  59. L_Weapon4:
  60. close2;
  61. mes "[Socket Enchant]";
  62. mes "Please choose your item:";
  63. next;
  64. menu "Stunner",Stunner,"Berserk",Berserk,"Claymore",Claymore,"Gungnir",Gungnir,"Poison Knife",Poison_Knife,"Sucsamad",Sucsamad,"Next",L_Weapon5,"Jump to page...",L_WaepJump;
  65. L_Weapon5:
  66. close2;
  67. mes "[Socket Enchant]";
  68. mes "Please choose your item:";
  69. next;
  70. menu "Ginnungagap",Ginnungagap,"Cutlus",Cutlus,"Crescent Scythe",Crescent_Scythe,"Ice Pick",Ice_Pick,"(Dex) Survivor's Rod",Dex_Survivors_Rod,"Next",L_Weapon1,"Jump to page...",L_WaepJump;
  71. Trident:
  72. set @olditem,1460;
  73. set @newitem,1461;
  74. callfunc "f_weapon_c";
  75. Rope:
  76. set @olditem,1950;
  77. set @newitem,1951;
  78. callfunc "f_weapon_c";
  79. Violin:
  80. set @olditem,1901;
  81. set @newitem,1902;
  82. callfunc "f_weapon_c";
  83. Chain:
  84. set @olditem,1519;
  85. set @newitem,1520;
  86. callfunc "f_weapon_b";
  87. Gladius:
  88. set @olditem,1219;
  89. set @newitem,1220;
  90. callfunc "f_weapon_b";
  91. Gakkung_Bow:
  92. set @olditem,1714;
  93. set @newitem,1716;
  94. callfunc "f_weapon_b";
  95. Pike:
  96. set @olditem,1407;
  97. set @newitem,1408;
  98. callfunc "f_weapon_b";
  99. Haedonggum:
  100. set @olditem,1123;
  101. set @newitem,1128;
  102. callfunc "f_weapon_b";
  103. Lute:
  104. set @olditem,1905;
  105. set @newitem,1906;
  106. callfunc "f_weapon_b";
  107. Wire_Whip:
  108. set @olditem,1954;
  109. set @newitem,1955;
  110. callfunc "f_weapon_b";
  111. Waghnak:
  112. set @olditem,1801;
  113. set @newitem,1802;
  114. callfunc "f_weapon_b";
  115. Arbalest:
  116. set @olditem,1713;
  117. set @newitem,1715;
  118. callfunc "f_weapon_b";
  119. Hunter_Bow:
  120. set @olditem,1718;
  121. set @newitem,1726;
  122. callfunc "f_weapon_a";
  123. Int_Survivors_Rod:
  124. set @olditem,1619;
  125. set @newitem,1620;
  126. callfunc "f_weapon_a";
  127. Zweihander:
  128. set @olditem,1168;
  129. set @newitem,1716;
  130. callfunc "f_weapon_a3";
  131. Flamberge:
  132. set @olditem,1129;
  133. set @newitem,1149;
  134. callfunc "f_weapon_a";
  135. Infiltrator:
  136. set @olditem,1261;
  137. set @newitem,1266;
  138. callfunc "f_weapon_a2";
  139. Ballista:
  140. set @olditem,1722;
  141. set @newitem,1727;
  142. callfunc "f_weapon_a";
  143. Stunner:
  144. set @olditem,1522;
  145. set @newitem,1532;
  146. callfunc "f_weapon_a";
  147. Berserk:
  148. set @olditem,1814;
  149. set @newitem,1816;
  150. callfunc "f_weapon_a";
  151. Claymore:
  152. set @olditem,1163;
  153. set @newitem,1172;
  154. callfunc "f_weapon_a";
  155. Gungnir:
  156. set @olditem,1413;
  157. set @newitem,1418;
  158. callfunc "f_weapon_s";
  159. Poison_Knife:
  160. set @olditem,1239;
  161. set @newitem,13016;
  162. callfunc "f_weapon_s";
  163. Sucsamad:
  164. set @olditem,1236;
  165. set @newitem,13018;
  166. callfunc "f_weapon_s";
  167. Ginnungagap:
  168. set @olditem,13002;
  169. set @newitem,13019;
  170. callfunc "f_weapon_s";
  171. Cutlus:
  172. set @olditem,1135;
  173. set @newitem,13400;
  174. callfunc "f_weapon_s";
  175. Crescent_Scythe:
  176. set @olditem,1466;
  177. set @newitem,1476;
  178. callfunc "f_weapon_s";
  179. Ice_Pick:
  180. set @olditem,1230;
  181. set @newitem,13017;
  182. callfunc "f_weapon_s2";
  183. Dex_Survivors_Rod:
  184. set @olditem,1617;
  185. set @newitem,1618;
  186. callfunc "f_weapon_s2";
  187. //============================================================
  188. //= Armor
  189. //============================================================
  190. L_ArmorJump:
  191. mes "[Socket Enchant]";
  192. mes "Choose the number of page. Type 1 to 6:";
  193. next;
  194. input @armorsite;
  195. if(@armorsite > 6 || @armorsite < 1) goto L_ArmorJump;
  196. if(@armorsite == 1) goto L_Armor1;
  197. if(@armorsite == 2) goto L_Armor2;
  198. if(@armorsite == 3) goto L_Armor3;
  199. if(@armorsite == 4) goto L_Armor4;
  200. if(@armorsite == 5) goto L_Armor5;
  201. if(@armorsite == 6) goto L_Armor6;
  202. L_Armor1:
  203. close2;
  204. mes "[Socket Enchant]";
  205. mes "Please choose your item:";
  206. next;
  207. menu "Mantle",Mantle,"Coat",Coat,"Circlet",Circlet,"Biretta",Biretta,"Mirror Shield",Mirror_Shield,"Chain Mail",Chain_Mail,"Shield",Shield,"Bongun Hat",Bongun_Hat,"Next",L_Armor2,"Jump to page...",L_ArmorJump;
  208. L_Armor2:
  209. close2;
  210. mes "[Socket Enchant]";
  211. mes "Please choose your item:";
  212. next;
  213. menu "Saint's Robe",Saints_Robe,"Silk Robe",Silk_Robe,"Boots",Boots,"Shoes",Shoes,"Muffler",Muffler,"Guard",Guard,"Buckler",Buckler,"Munak Hat",Munak_Hat,"Next",L_Armor3,"Jump to page...",L_ArmorJump;
  214. L_Armor3:
  215. close2;
  216. mes "[Socket Enchant]";
  217. mes "Please choose your item:";
  218. next;
  219. menu "Gemmed Sallet",Gemmed_Sallet,"Bucket Hat",Bucket_Hat,"Memory Book",Memory_Book,"Tights",Tights,"Legion Plate Armor",Legion_Plate_Armor,"Full Plate",Full_Plate,"Thief Clothes",Thief_Clothes,"Next",L_Armor4,"Jump to page...",L_ArmorJump;
  220. L_Armor4:
  221. close2;
  222. mes "[Socket Enchant]";
  223. mes "Please choose your item:";
  224. next;
  225. menu "Greaves",Greaves,"Coif",Coif,"Manteau",Manteau,"Helm",Helm,"Ninja Suit",Ninja_Suit,"Orc Helm",Orc_Helm,"Ancient Cape",Ancient_Cape,"Next",L_Armor5,"Jump to page...",L_ArmorJump;
  226. L_Armor5:
  227. close2;
  228. mes "[Socket Enchant]";
  229. mes "Please choose your item:";
  230. next;
  231. menu "Monk Hat",Monk_Hat,"Golden Gear",Golden_Gear,"Brooch",Brooch,"Tiara",Tiara,"Sphinx Hat",Sphinx_Hat,"Robe of Cast",Robe_of_Cast,"Earring",Earring,"Next",L_Armor6,"Jump to page...",L_ArmorJump;
  232. L_Armor6:
  233. close2;
  234. mes "[Socket Enchant]";
  235. mes "Please choose your item:";
  236. next;
  237. menu "Ring",Ring,"Bow Thimble",Bow_Thimble,"Majestic Goat",Majestic_Goat,"Spiky Band",Spiky_Band,"Bone Helm",Bone_Helm,"Corsair",Corsair,"Crown",Crown,"Next",L_Armor1,"Jump to page...",L_ArmorJump;
  238. Mantle:
  239. set @olditem,2307;
  240. set @newitem,2308;
  241. callfunc "f_armor_c";
  242. Coat:
  243. set @olditem,2309;
  244. set @newitem,2310;
  245. callfunc "f_armor_c";
  246. Circlet:
  247. set @olditem,2232;
  248. set @newitem,2233;
  249. callfunc "f_armor_c";
  250. Biretta:
  251. set @olditem,2216;
  252. set @newitem,2217;
  253. callfunc "f_armor_c";
  254. Mirror_Shield:
  255. set @olditem,2107;
  256. set @newitem,2108;
  257. callfunc "f_armor_b";
  258. Chain_Mail:
  259. set @olditem,2314;
  260. set @newitem,2315;
  261. callfunc "f_armor_b";
  262. Shield:
  263. set @olditem,2105;
  264. set @newitem,2106;
  265. callfunc "f_armor_b";
  266. Bongun_Hat:
  267. set @olditem,5046;
  268. set @newitem,5168;
  269. callfunc "f_armor_b";
  270. Saints_Robe:
  271. set @olditem,2325;
  272. set @newitem,2326;
  273. callfunc "f_armor_b2";
  274. Silk_Robe:
  275. set @olditem,2321;
  276. set @newitem,2322;
  277. callfunc "f_armor_b2";
  278. Boots:
  279. set @olditem,2405;
  280. set @newitem,2406;
  281. callfunc "f_armor_b2";
  282. Shoes:
  283. set @olditem,2403;
  284. set @newitem,2404;
  285. callfunc "f_armor_b2";
  286. Muffler:
  287. set @olditem,2503;
  288. set @newitem,2504;
  289. callfunc "f_armor_b2";
  290. Guard:
  291. set @olditem,2101;
  292. set @newitem,2102;
  293. callfunc "f_armor_b2";
  294. Buckler:
  295. set @olditem,2103;
  296. set @newitem,2104;
  297. callfunc "f_armor_b2";
  298. Munak_Hat:
  299. set @olditem,2264;
  300. set @newitem,5167;
  301. callfunc "f_armor_a";
  302. Gemmed_Sallet:
  303. set @olditem,2230;
  304. set @newitem,2231;
  305. callfunc "f_armor_a2";
  306. Bucket_Hat:
  307. set @olditem,5114;
  308. set @newitem,5120;
  309. callfunc "f_armor_a2";
  310. Memory_Book:
  311. set @olditem,2109;
  312. set @newitem,2121;
  313. callfunc "f_armor_a2";
  314. Tights:
  315. set @olditem,2330;
  316. set @newitem,2331;
  317. callfunc "f_armor_a2";
  318. Legion_Plate_Armor:
  319. set @olditem,2341;
  320. set @newitem,2342;
  321. callfunc "f_armor_a2";
  322. Full_Plate:
  323. set @olditem,2316;
  324. set @newitem,2317;
  325. callfunc "f_armor_a2";
  326. Thief_Clothes:
  327. set @olditem,2335;
  328. set @newitem,2336;
  329. callfunc "f_armor_a2";
  330. Greaves:
  331. set @olditem,2411;
  332. set @newitem,2412;
  333. callfunc "f_armor_a2";
  334. Coif:
  335. set @olditem,5092;
  336. set @newitem,5093;
  337. callfunc "f_armor_a2";
  338. Manteau:
  339. set @olditem,2505;
  340. set @newitem,2506;
  341. callfunc "f_armor_a2";
  342. Helm:
  343. set @olditem,2228;
  344. set @newitem,2229;
  345. callfunc "f_armor_a2";
  346. Ninja_Suit:
  347. set @olditem,2337;
  348. set @newitem,2359;
  349. callfunc "f_armor_a2";
  350. Orc_Helm:
  351. set @olditem,2299;
  352. set @newitem,5157;
  353. callfunc "f_armor_a2";
  354. Ancient_Cape:
  355. set @olditem,2507;
  356. set @newitem,2525;
  357. callfunc "f_armor_a2";
  358. Monk_Hat:
  359. set @olditem,2251;
  360. set @newitem,5158;
  361. callfunc "f_armor_a2";
  362. Golden_Gear:
  363. set @olditem,2246;
  364. set @newitem,5159;
  365. callfunc "f_armor_a2";
  366. Brooch:
  367. set @olditem,2605;
  368. set @newitem,2625;
  369. callfunc "f_armor_a2";
  370. Tiara:
  371. set @olditem,2234;
  372. set @newitem,5164;
  373. callfunc "f_armor_s2";
  374. Sphinx_Hat:
  375. set @olditem,5053;
  376. set @newitem,5166;
  377. callfunc "f_armor_s";
  378. Robe_of_Cast:
  379. set @olditem,2343;
  380. set @newitem,2360;
  381. callfunc "f_armor_s";
  382. Earring:
  383. set @olditem,2602;
  384. set @newitem,2622;
  385. callfunc "f_armor_s";
  386. Ring:
  387. set @olditem,2601;
  388. set @newitem,2621;
  389. callfunc "f_armor_s";
  390. Bow_Thimble:
  391. set @olditem,2619;
  392. set @newitem,2671;
  393. callfunc "f_armor_s";
  394. Majestic_Goat:
  395. set @olditem,2256;
  396. set @newitem,5160;
  397. callfunc "f_armor_s2";
  398. Spiky_Band:
  399. set @olditem,2258;
  400. set @newitem,5161;
  401. callfunc "f_armor_s2";
  402. Bone_Helm:
  403. set @olditem,5017;
  404. set @newitem,5162;
  405. callfunc "f_armor_s2";
  406. Corsair:
  407. set @olditem,5019;
  408. set @newitem,5163;
  409. callfunc "f_armor_s2";
  410. Crown:
  411. set @olditem,2235;
  412. set @newitem,5165;
  413. callfunc "f_armor_s2";
  414. //============================================================
  415. //= Other
  416. //============================================================
  417. L_Not:
  418. mes "[Socket Enchant]";
  419. mes "Bye~!";
  420. close;
  421. }
  422. //============================================================
  423. //= Functions add slots
  424. //============================================================
  425. function script addslot {
  426. mes "[Socket Enchant]";
  427. mes "Upgrade cost "+@addprice+" zeny and ^5533FF"+@itemupname$+"^000000.";
  428. next;
  429. mes "[Socket Enchant]";
  430. mes "Are you sure? Remember that it can fail.";
  431. mes "Do you want to continue?";
  432. next;
  433. menu "Yes",-,"No",L_No;
  434. if(countitem(@olditem)<1) goto L_NoItem;
  435. if(Zeny<@addprice) goto L_NoZeny;
  436. if(countitem(@itemup)<@itemupiece) goto L_NoItemUp;
  437. delitem @itemup,@itemupiece;
  438. set Zeny,Zeny-@addprice;
  439. delitem @olditem,1;
  440. if(@rateit<rand(1,100))goto L_Fail;
  441. misceffect 83;
  442. getitem @newitem,1;
  443. mes "[Socket Enchant]";
  444. mes "Ok, take your item, Bye.";
  445. close;
  446. L_NoItem:
  447. mes "[Socket Enchant]";
  448. mes "You don't have this item.";
  449. mes "Come back when you get it.";
  450. close;
  451. L_NoItemUp:
  452. mes "[Socket Enchant]";
  453. mes "You don't have all ingridients. Come back when you get it.";
  454. close;
  455. L_NoZeny:
  456. mes "[Socket Enchant]";
  457. mes "You don't have enough money. Come back later.";
  458. close;
  459. L_Fail:
  460. misceffect 183;
  461. mes "[Socket Enchant]";
  462. mes "Sorry, but i could't upgrade it.";
  463. close;
  464. L_No:
  465. mes "[Socket Enchant]";
  466. mes "Ok, Bye.";
  467. close;
  468. }
  469. //============================================================
  470. function script addslot2 {
  471. mes "[Socket Enchant]";
  472. mes "Upgrade cost "+@addprice+" zeny and ^5533FF"+@itemupname1$+"^000000 and ^5533FF"+@itemupname2$+"^000000.";
  473. next;
  474. mes "[Socket Enchant]";
  475. mes "Are you sure? Remember that it can fail.";
  476. mes "Do you want to continue?";
  477. next;
  478. menu "Yes",-,"No",L_No;
  479. if(countitem(@olditem)<1) goto L_NoItem;
  480. if(Zeny<@addprice) goto L_NoZeny;
  481. if((countitem(@itemup1)<@itemupiece1) && (countitem(@itemup2)<@itemupiece2)) goto L_NoItemUp;
  482. delitem @itemup1,@itemupiece1;
  483. delitem @itemup2,@itemupiece2;
  484. set Zeny,Zeny-@addprice;
  485. delitem @olditem,1;
  486. if(@rateit<rand(1,100))goto L_Fail;
  487. misceffect 83;
  488. getitem @newitem,1;
  489. mes "[Socket Enchant]";
  490. mes "Ok, take your item, Bye.";
  491. close;
  492. L_NoItem:
  493. mes "[Socket Enchant]";
  494. mes "You don't have this item.";
  495. mes "Come back when you get it.";
  496. close;
  497. L_NoItemUp:
  498. mes "[Socket Enchant]";
  499. mes "You don't have all ingridients. Come back when you get it.";
  500. close;
  501. L_NoZeny:
  502. mes "[Socket Enchant]";
  503. mes "You don't have enough money. Come back later.";
  504. close;
  505. L_Fail:
  506. misceffect 183;
  507. mes "[Socket Enchant]";
  508. mes "Sorry, but i could't upgrade it.";
  509. close;
  510. L_No:
  511. mes "[Socket Enchant]";
  512. mes "Ok, Bye.";
  513. close;
  514. }
  515. //============================================================
  516. //= Functions
  517. //============================================================
  518. //= Weapon
  519. function script f_weapon_c {
  520. set @rateit,50; //success rate
  521. set @addprice,200000;
  522. set @itemup,1010;
  523. set @itemupiece,10;
  524. set @itemupname$,"10 Phracon";
  525. callfunc "addslot";
  526. }
  527. function script f_weapon_b {
  528. set @rateit,25; //success rate
  529. set @addprice,300000;
  530. set @itemup1,984;
  531. set @itemupiece1,2;
  532. set @itemupname1$,"2 Oridecon";
  533. set @itemup2,999;
  534. set @itemupiece2,5;
  535. set @itemupname2$,"5 Steel";
  536. callfunc "addslot2";
  537. }
  538. function script f_weapon_a {
  539. set @rateit,10; //success rate
  540. set @addprice,500000;
  541. set @itemup1,984;
  542. set @itemupiece1,2;
  543. set @itemupname1$,"2 Oridecon";
  544. set @itemup2,999;
  545. set @itemupiece2,10;
  546. set @itemupname2$,"10 Steel";
  547. callfunc "addslot2";
  548. }
  549. function script f_weapon_a2 {
  550. set @rateit,10; //success rate
  551. set @addprice,700000;
  552. set @itemup1,984;
  553. set @itemupiece1,2;
  554. set @itemupname1$,"2 Oridecon";
  555. set @itemup2,999;
  556. set @itemupiece2,10;
  557. set @itemupname2$,"10 Steel";
  558. callfunc "addslot2";
  559. }
  560. function script f_weapon_a3 {
  561. set @rateit,10; //success rate
  562. set @addprice,800000;
  563. set @itemup1,984;
  564. set @itemupiece1,2;
  565. set @itemupname1$,"2 Oridecon";
  566. set @itemup2,999;
  567. set @itemupiece2,10;
  568. set @itemupname2$,"10 Steel";
  569. callfunc "addslot2";
  570. }
  571. function script f_weapon_s {
  572. set @rateit,4; //success rate
  573. set @addprice,1000000;
  574. set @itemup1,984;
  575. set @itemupiece1,5;
  576. set @itemupname1$,"5 Oridecon";
  577. set @itemup2,999;
  578. set @itemupiece2,10;
  579. set @itemupname2$,"10 Steel";
  580. callfunc "addslot2";
  581. }
  582. function script f_weapon_s2 {
  583. set @rateit,4; //success rate
  584. set @addprice,2000000;
  585. set @itemup1,984;
  586. set @itemupiece1,5;
  587. set @itemupname1$,"5 Oridecon";
  588. set @itemup2,999;
  589. set @itemupiece2,10;
  590. set @itemupname2$,"10 Steel";
  591. callfunc "addslot2";
  592. }
  593. //= Armor
  594. function script f_armor_c {
  595. set @rateit,50; //success rate
  596. set @addprice,200000;
  597. set @itemup,999;
  598. set @itemupiece,3;
  599. set @itemupname$,"3 Steel";
  600. callfunc "addslot";
  601. }
  602. function script f_armor_b {
  603. set @rateit,25; //success rate
  604. set @addprice,250000;
  605. set @itemup,999;
  606. set @itemupiece,5;
  607. set @itemupname$,"5 Steel";
  608. callfunc "addslot";
  609. }
  610. function script f_armor_b2 {
  611. set @rateit,25; //success rate
  612. set @addprice,300000;
  613. set @itemup,999;
  614. set @itemupiece,5;
  615. set @itemupname$,"5 Steel";
  616. callfunc "addslot";
  617. }
  618. function script f_armor_a {
  619. set @rateit,10; //success rate
  620. set @addprice,300000;
  621. set @itemup,985;
  622. set @itemupiece,1;
  623. set @itemupname$,"1 Elunium";
  624. callfunc "addslot";
  625. }
  626. function script f_armor_a2 {
  627. set @rateit,10; //success rate
  628. set @addprice,400000;
  629. set @itemup,985;
  630. set @itemupiece,1;
  631. set @itemupname$,"1 Elunium";
  632. callfunc "addslot";
  633. }
  634. function script f_armor_s {
  635. set @rateit,4; //success rate
  636. set @addprice,1000000;
  637. set @itemup,985;
  638. set @itemupiece,2;
  639. set @itemupname$,"2 Elunium";
  640. callfunc "addslot";
  641. }
  642. function script f_armor_s2 {
  643. set @rateit,4; //success rate
  644. set @addprice,2000000;
  645. set @itemup,985;
  646. set @itemupiece,2;
  647. set @itemupname$,"2 Elunium";
  648. callfunc "addslot";
  649. }
  650. prt_in.gat,33,70,5 duplicate(Socket Enchant) Socket Enchant#2 84
  651. payon.gat,140,151,5 duplicate(Socket Enchant) Socket Enchant#3 84
  652. morocc.gat,51,41,5 duplicate(Socket Enchant) Socket Enchant#4 84