socket_enchant.txt 21 KB

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