akbare

sale item inventory to zeny

Jan 27th, 2024
12
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 11.95 KB | None | 0 0
  1. prontera,151,158,4 script Mencoba Card Buyer 658,{
  2.  
  3. mes "[MVP Equipment Buyer]";
  4. mes "You have any MVP's gear to sell ?";
  5. next;
  6.  
  7. getinventorylist;
  8. for (; .@i < @inventorylist_count; .@i++) {
  9. .@item_id = @inventorylist_id[.@i];
  10. .equip = 0;
  11. if(getiteminfo(.@item_id,2) == 4){
  12. .equip = 1;
  13. }
  14. if(getiteminfo(.@item_id,2) == 5){
  15. .equip = 1;
  16. }
  17. if(.equip == 1){
  18. if(@inventorylist_equip[.@i] == 0) {
  19. .@items[.@count] = .@item_id;
  20. .@slots = getitemslots(.@item_id);
  21. .el = 0;
  22. if(inarray(.equip1m, .@item_id) >= 0) {
  23. .@menu$ = .@menu$ + getitemname(.@item_id) + " [" + .@slots + "] ^00FF001M Zeny^000000:";
  24. .el = 1;
  25. }
  26. if(inarray(.equip5m, .@item_id) >= 0) {
  27. .@menu$ = .@menu$ + getitemname(.@item_id) + " [" + .@slots + "] ^0000FF5M Zeny^000000:";
  28. .el = 1;
  29. }
  30. if(inarray(.equip10m, .@item_id) >= 0) {
  31. .@menu$ = .@menu$ + getitemname(.@item_id) + " [" + .@slots + "] ^0000FF10M Zeny^000000:";
  32. .el = 1;
  33. }
  34. if(inarray(.equip50m, .@item_id) >= 0) {
  35. .@menu$ = .@menu$ + getitemname(.@item_id) + " [" + .@slots + "] ^0000FF50M Zeny^000000:";
  36. .el = 1;
  37. }
  38. if(inarray(.equip100m, .@item_id) >= 0) {
  39. .@menu$ = .@menu$ + getitemname(.@item_id) + " [" + .@slots + "] ^FF0000100M Zeny^000000:";
  40. .el = 1;
  41. }
  42. if(inarray(.equip500m, .@item_id) >= 0) {
  43. .@menu$ = .@menu$ + getitemname(.@item_id) + " [" + .@slots + "] ^FF0000500M Zeny^000000:";
  44. .el = 1;
  45. }
  46. if(inarray(.equip1b, .@item_id) >= 0) {
  47. .@menu$ = .@menu$ + getitemname(.@item_id) + " [" + .@slots + "] ^FF00001B Zeny^000000:";
  48. .el = 1;
  49. }
  50. if(.el == 1){
  51. .@count++;
  52. }
  53. }
  54. }
  55. }
  56.  
  57. .@select = select(.@menu$) - 1;
  58.  
  59. .@equipselect = .@items[.@select];
  60.  
  61. delitem .@equipselect,1;
  62. if(inarray(.equip1m, .@equipselect) >= 0) {
  63. set Zeny, Zeny + 1000000;
  64. }
  65. if(inarray(.equip5m, .@equipselect) >= 0) {
  66. set Zeny, Zeny + 5000000;
  67. }
  68. if(inarray(.equip10m, .@equipselect) >= 0) {
  69. set Zeny, Zeny + 10000000;
  70. }
  71. if(inarray(.equip50m, .@equipselect) >= 0) {
  72. set Zeny, Zeny + 50000000;
  73. }
  74. if(inarray(.equip100m, .@equipselect) >= 0) {
  75. set Zeny, Zeny + 100000000;
  76. }
  77. if(inarray(.equip500m, .@equipselect) >= 0) {
  78. set Zeny, Zeny + 500000000;
  79. }
  80. if(inarray(.equip1b, .@equipselect) >= 0) {
  81. set Zeny, Zeny + 1000000000;
  82. }
  83.  
  84. end;
  85.  
  86.  
  87. OnInit:
  88.  
  89. //Golden Gear [0],Katar of Raging Blaze [0],Fortune Sword [0],Katar of Frozen Icicle [0],Hatii Claw [1]
  90. setarray .equip1m,2246,1258,1223,1256,1815;//easyMVP >=15% ~5% ~1% ~0.1% ~0.01%
  91. //Golden Mace [1],Fireblend [0],Krierg [3],Spectral Spear [0],Holy Robe [0],Sucsamad [0],Weihna [2],Corsair [0],Ice Falchion [0],Coronet [0],Erde [2],Zephyrus [0],Orcish Sword [0],Crown [0],Sphinx Hat [0],Nagan [0],Schweizersabel [0],Mage Coat [0],Long Horn [1],Hunting Spear [1],Tiara [0],Safety Ring [0],Heavenly Maiden Robe [1],Dark Blinder [0],Tablet [1],Morrigane's Belt [0],Morrigane's Pendant [0],Morpheus's Ring [0],Morpheus's Bracelet [0],Jewel Crown [0],Survivor's Manteau [0],Critical Ring [0],Eagle Wing [1],Morrigane's Manteau [0],Lord's Clothes [1],Legion Plate Armor [1],Greaves [1],Helm [1],Nydhorgg's Shadow Garb [1],Pauldron [1]
  92. setarray .equip5m,1524,1133,13046,1477,2327,1236,13047,5019,1131,2249,16000,1468,1124,2235,5053,1130,1167,2334,1420,1422,2234,2615,2513,5104,1552,2650,2651,2648,2649,5002,2509,2616,2515,2519,2318,2342,2412,2229,2554,2514;//mediumMVP
  93. //Moonlight Dagger [0],Long Mace [0],Staff Of Bordeaux [0],Holy Avenger [0],War Axe [1],Pole Axe [1],Holy Guard [0],Sacred Mission [0],Majestic Goat [0],Cutlus [0],Krasnaya [3],Lance [0],Spiky Band [0],Hellfire [0],Gae Bolg [0],Gungnir [0],Red Square Bag [2],Bloody Axe [0],Doom Slayer [1],Grand Circlet [0],Assassin Dagger [0],Chakram [2],Grimtooth [0],Ancient Cape [0],Spiritual Ring [0],Crescent Scythe [0],Dea Staff [1],Atlas Weapon [1],Ulle's Cap [1],Wizardry Staff [0],Ballista [0],Ixion Wings [1],Ice Pick [0],Dagger of Counter [0],Survivor's Rod [1],Solar Sword [0],Bazerald [0],Immaterial Sword [0],Ledger of Death [2],Staff of Destruction [1],Variant Shoes [0],Bison Horn [1],Exorciser [0],Bloody Roar [0],Ginnungagap [0],Quadrille [0],Grand Cross [0],Book of the Apocalypse [0],Sage's Diary [2],Berserk [0],Cursed Dagger [0],Robe of Cast [0],Bloodied Shackle Ball [0],Edge [0],Dragon Slayer [0],Brocca [0],Longinus's Spear [0],Brionac [0],Mysteltainn [0],Byeollungum [0],Great Axe [0],Sabbath [0],Tomahawk [0],Guillotine [0],Combat Knife [0],Rudra Bow [0],Dragon Wing [0],Luna Bow [2],Valkyrian Armor [1],Valkyrian Shoes [1],Valkyrian Manteau [1],Katzbalger [0],Cardo [1]
  94. setarray .equip10m,1234,1525,1648,1145,1306,1417,2110,2111,2256,1135,1189,1411,2258,1471,1474,1413,16001,1363,1371,5007,1232,1285,1237,2507,2677,1466,2005,1175,5123,1473,1722,1737,1230,1242,1618,1136,1231,1141,1565,2000,2423,2702,1233,1265,13002,1527,1528,1557,1560,1814,1241,2343,2655,1132,1166,1415,1469,1470,1138,1140,1364,1365,1368,1369,1228,1720,1724,1723,2357,2421,2524,1170,1484;//hardMVP
  95. //Azoth [0],Zweihander [0],Light Epsilon [0],Giant Axe [1],Kronos [0],Crescent Scythe [1],Red Silk Seal [0],Hurricane's Fury [1],Iron Driver [0],Vesper Core 01 [0],Vesper Core 02 [0],Vesper Core 03 [0],Vesper Core 04 [0],Lucius's Fierce Armor of Volcano [1],Ring Of Flame Lord [0],Ring Of Resonance [0],Saphien's Armor of Ocean [1],Twin Edge of Naght Sieger [3]x2
  96. setarray .equip50m,1235,1168,1366,1387,2004,1476,2700,1377,1529,2659,2660,2661,2662,2345,2678,2679,2347,13412,13413;//superhardMVP
  97. //Majestic Goat [1],Wrench [0],Ice Pick [1]
  98. setarray .equip100m,5160,1531,13017;
  99. //Masamune [0]
  100. setarray .equip500m,1165;
  101. //Sleipnir [0],Megingjard [0],Brisingamen [0],Mjolnir [0],Asprika [0],Brynhild [0]
  102. setarray .equip1b,2410,2629,2630,1530,2541,2383;
  103.  
  104. end;
  105. }
  106.  
  107.  
  108.  
  109.  
  110.  
  111.  
  112. prontera,179,202,4 script Coco 658,{
  113. mes "Yek!";
  114. close;
  115. }
  116.  
  117.  
  118.  
  119.  
  120.  
  121.  
  122. prontera,183,202,4 script Buyers's Bodyguard 683,{
  123. mes "[Buyers's Bodyguard]";
  124. mes "Hello! I am just a bodyguard!";
  125. close;
  126. }
  127.  
  128.  
  129.  
  130.  
  131.  
  132.  
  133.  
  134. prontera,181,204,4 script Card Buyer 666,{
  135.  
  136. mes "[Card Buyer]";
  137. mes "You have any card to sell ? <3";
  138. next;
  139.  
  140. getinventorylist;
  141. for (; .@i < @inventorylist_count; .@i++) {
  142. if(getiteminfo(@inventorylist_id[.@i],2) == 6){
  143. .@card_id = @inventorylist_id[.@i];
  144. .@card_qt = @inventorylist_amount[.@i];
  145. .@items[.@count] = .@card_id;
  146. .el = 0;
  147. if(inarray(.card1m, .@card_id) >= 0) {
  148. .@menu$ = .@menu$ + getitemname(.@card_id) + " ^0000FF1M Zeny^000000 (" + .@card_qt + "):";
  149. .el = 1;
  150. }
  151. if(inarray(.card5m, .@card_id) >= 0) {
  152. .@menu$ = .@menu$ + getitemname(.@card_id) + " ^0000FF5M Zeny^000000 (" + .@card_qt + "):";
  153. .el = 1;
  154. }
  155. if(inarray(.card10m, .@card_id) >= 0) {
  156. .@menu$ = .@menu$ + getitemname(.@card_id) + " ^0000FF10M Zeny^000000 (" + .@card_qt + "):";
  157. .el = 1;
  158. }
  159. if(inarray(.card50m, .@card_id) >= 0) {
  160. .@menu$ = .@menu$ + getitemname(.@card_id) + " ^0000FF50M Zeny^000000 (" + .@card_qt + "):";
  161. .el = 1;
  162. }
  163. if(inarray(.card100m, .@card_id) >= 0) {
  164. .@menu$ = .@menu$ + getitemname(.@card_id) + " ^FF0000100M Zeny^000000 (" + .@card_qt + "):";
  165. .el = 1;
  166. }
  167. if(inarray(.card500m, .@card_id) >= 0) {
  168. .@menu$ = .@menu$ + getitemname(.@card_id) + " ^FF0000500M Zeny^000000 (" + .@card_qt + "):";
  169. .el = 1;
  170. }
  171. if(inarray(.card1b, .@card_id) >= 0) {
  172. .@menu$ = .@menu$ + getitemname(.@card_id) + " ^FF00001B Zeny^000000 (" + .@card_qt + "):";
  173. .el = 1;
  174. }
  175. if(.el == 0) {
  176. .@menu$ = .@menu$ + getitemname(.@card_id) + " ^00FF0050K Zeny^000000 (" + .@card_qt + "):";
  177. }
  178. .@count++;
  179. }
  180. }
  181.  
  182. .@select = select(.@menu$) - 1;
  183.  
  184. .@cardselect = .@items[.@select];
  185.  
  186. delitem .@cardselect,1;
  187. .el = 0;
  188. if(inarray(.card1m, .@cardselect) >= 0) {
  189. set Zeny, Zeny + 1000000;
  190. .el = 1;
  191. }
  192. if(inarray(.card5m, .@cardselect) >= 0) {
  193. set Zeny, Zeny + 5000000;
  194. .el = 1;
  195. }
  196. if(inarray(.card10m, .@cardselect) >= 0) {
  197. set Zeny, Zeny + 10000000;
  198. .el = 1;
  199. }
  200. if(inarray(.card50m, .@cardselect) >= 0) {
  201. set Zeny, Zeny + 50000000;
  202. .el = 1;
  203. }
  204. if(inarray(.card100m, .@cardselect) >= 0) {
  205. set Zeny, Zeny + 100000000;
  206. .el = 1;
  207. }
  208. if(inarray(.card500m, .@cardselect) >= 0) {
  209. set Zeny, Zeny + 500000000;
  210. .el = 1;
  211. }
  212. if(inarray(.card1b, .@cardselect) >= 0) {
  213. set Zeny, Zeny + 1000000000;
  214. .el = 1;
  215. }
  216. if(.el == 0) {
  217. set Zeny, Zeny + 50000;
  218. }
  219.  
  220. end;
  221.  
  222. OnInit:
  223.  
  224. //EXPCards4245-4235,GarmentElementalDamageIncrease4432-4422,CriticalCards4246-4176,WeapontoRaceCards4035-4118,WeapontoElementCards4049-4202,WeapontoSizeCards4082-4126,WeaponStatusCards4096-4104,ArmorCastStatus4301-4194,RaceDrainSP:4329-4316,MinibossEasy:4197,4266,4179,4306,4183,Autocast:4244,4400,4248,4234,4243,4320,4212,4284,4299,4217,4439,4418,4280,4161,4283,4381,4323,4343,4268,4191,4193,4199,4341,4420,4175,4313,4294,4230,4172,4209,4210,4332,4264,EnableSkillLow:4356,4103,4139,4093,4048,4033,4414,4044,4424==
  225. setarray .card1m,4245,4204,4221,4239,4249,4275,4164,4151,4267,4235,4432,4422,4246,4297,4214,4156,4310,4157,4192,4292,4176,4035,4060,4063,4007,4111,4130,4080,4068,4118,4049,4069,4030,4065,4085,4005,4062,4202,4082,4092,4126,4096,4037,4025,4017,4057,4020,4024,4055,4076,4390,4104,4301,4404,4162,4295,4298,4286,4383,4166,4189,4216,4300,4270,4333,4213,4181,4173,4222,4170,4315,4201,4194,4329,4167,4165,4308,4182,4274,4307,4289,4180,4316,4197,4266,4179,4306,4183,4244,4400,4248,4234,4243,4320,4212,4284,4299,4217,4439,4418,4280,4161,4283,4381,4323,4343,4268,4191,4193,4199,4341,4420,4175,4313,4294,4230,4172,4209,4210,4332,4264,4356,4103,4139,4093,4048,4033,4414,4044,4424;
  226. //ImmuneCards4336-4124,ElementDamageReduce4334-4108,RaceReduceDamage4058-4138,SizeReduceDamage4207-4413,HighUpgradeLevel:4242-4226,LowUpgradeLevel:4379-4378,BioGhost:4346,4348,4347,4349,4351,4350,MagicSkillBuff4388-4380,Food-Drop:4344-4377,Box-Drop:4228-4190,StatSwitchingCards4369-4338,MagicResistCards4278-4200,MinibossMed:4423,4203,4163,4354,4237,4238,4290,4394,EnableSkillHigh:4040,4088,4084,4073,4053==
  227. setarray .card5m,4336,4122,4087,4105,4112,4127,4124,4334,4325,4133,4109,4095,4056,4081,4116,4071,4113,4108,4058,4066,4074,4314,4136,4340,4083,4059,4120,4138,4207,4254,4250,4413,4242,4288,4160,4319,4159,4375,4226,4379,4378,4346,4348,4347,4349,4351,4350,4388,4345,4335,4380,4344,4391,4355,4385,4377,4228,4187,4262,4224,4265,4149,4256,4190,4369,4387,4392,4393,4338,4278,4150,4240,4287,4200,4423,4203,4163,4354,4237,4238,4290,4394,4040,4088,4084,4073,4053;
  228. //ArmorElements4114-4119,BioMVPghost:4358,4360,4362,4364,4368,4366,ofThanatos:4397,4398,4395,4396,AddedStatsUpgrade:4370-4373,MinibossHard:4428,4198,4406,4431,4427,4426,4440,4429==
  229. setarray .card10m,4114,4141,4099,4089,4098,4101,4119,4358,4360,4362,4364,4368,4366,4397,4398,4395,4396,4370,4373,4428,4198,4406,4431,4427,4426,4440,4429;
  230. //BossEffect:Abysmal Knight,Alice,GuardianEffect:Elder,Mi Gao,MinibossSuperHard:4169,4384,Incubus+Succubus==
  231. setarray .card50m,4140,4253,4251,4231,4169,4384,4269,4218;
  232. //MinibossMostValue:Angeling,Deviling,Ghostring,Arc Angeling==
  233. setarray .card100m,4054,4174,4047,4241;
  234. //MVPCards:Amon Ra,Atroce,White Lady,Baphomet,Berzebub,Dark Lord,Detardeurus,Doppelganger,Dracula,Drake,Eddga,Evil Snake Lord,Fallen Bishop Hibram,Hatii,Gloom Under Night,Golden Thief Bug,Ifrit,Samurai Spector,Kiel-D-01,Stormy Knight,Ktullanux,Lady Tanee,Lord of The Dead,Maya,Mistress,Moonlight Flower,Orc Hero,Orc Lord,Osiris,Pharaoh,Phreeoni,RSX-0806,Tao Gunka,Turtle General,Randgris,Vesper,General Egnigem Cenia==
  235. setarray .card500m,4236,4425,4372,4147,4145,4168,4386,4142,4134,4137,4123,4330,4441,4324,4408,4128,4430,4263,4403,4318,4419,4376,4276,4146,4132,4131,4143,4135,4144,4148,4121,4342,4302,4305,4407,4374,4352;
  236. //6BiolabMVP,Memory of Thanatos==
  237. setarray .card1b,4359,4363,4365,4357,4367,4361,4399;
  238. //All else : 50k
  239.  
  240. end;
  241. }
Add Comment
Please, Sign In to add comment