socket_enchant.txt 21 KB

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