Jump to content

Team Infamous

Members
  • Posts

    18
  • Joined

  • Last visited

2 Followers

Profile Information

  • Gender
    Male
  • Location
    Sparks,Nevada

Contact Methods

Recent Profile Visitors

2,399 profile views

Team Infamous's Achievements

Poring

Poring (1/15)

0

Reputation

  1. Still Need Solution on This Thank you
  2. Everytime i click the Vote Now the message Proxy is now allowed pops in..How to fix this?
  3. How lucky im using Thor. by the way what i want is every time they click start button in may patcher.exe another browser will be pop out which is my voting sites.then automatically start the game.
  4. everytime they start the game in Patcher.exe or shortcut exe browser will open and go to my website.sample is Voting site. Anyone ^_~
  5. looks like safe limit is not working since it always success to 10 i'd like to have the default refine rate which is Armor: safe limit to 4 Same thing in weapon 1 safe is 8 weapon 2 safe is 7 weapon 3 safe in 6 weapon 4 safe in 5 and by the way here's my refine_db from /trunk/db/re/ // // Type,Stats per level,Random bonus start level,Random bonus value,Chance+1:Bonus+1,Chance+2:Bonus+2,Chance+3:Bonus+3,... // // IMPORTANT: changing the number of upgrade levels requires modifying MAX_REFINE in status.h // // For armors, values of 100 add 1 armor defense. // For weapons, values of 100 add 1 ATK&MATK. // // Type: // 0 - Armors // 1 - Level 1 weapons // 2 - Level 2 weapons // 3 - Level 3 weapons // 4 - Level 4 weapons // // Stats per level: // This value is applied for every upgrade level. // // Random bonus start level: // This value specifies the start point for those levels that give a random bonus value (usually the first unsafe upgrade). // // Random bonus value: // A random number between 0 and (Random bonus start level - Upgrade level + 1) * this value is applied for all upgrades past // Random bonus start level. This is only applied for weapons, and not displayed client-side. // // Chance: // 100 = 100% // // Note: Chances for +11 and higher are not verified - 10% is a rumor from iRO wiki. // A note about renewal Armors, there may or may not be another bonus, according to iRO wiki: Every upgrade gives floor[( 3 + current upgrade ) / 4] equipment DEF) 0,0,0,0,100:100,100:100,100:100,100:100,60:200,40:200,40:200,20:200,20:300,10:300,50:300,30:300,30:400,20:400,10:400,10:400,10:500,10:500,10:500,10:500 // Level 1 weapons 1,200,8,300,100:0,100:0,100:0,100:0,100:0,100:0,100:0,60:0,40:0,20:0,70:0,70:0,50:0,50:0,30:0,30:300,20:300,20:300,10:300,10:300 // Level 2 weapons 2,300,7,500,100:0,100:0,100:0,100:0,100:0,100:0,60:0,40:0,20:0,20:0,70:0,50:0,50:0,30:0,30:0,20:600,20:600,10:600,10:600,10:600 // Level 3 weapons 3,500,6,800,100:0,100:0,100:0,100:0,100:0,60:0,50:0,20:0,20:0,20:0,50:0,50:0,30:0,30:0,20:0,20:900,10:900,10:900,10:900,10:900 // Level 4 weapons 4,700,5,1400,100:0,100:0,100:0,100:0,60:0,40:0,40:0,20:0,20:0,10:0,50:0,30:0,30:0,20:0,20:0,10:1200,10:1200,10:1200,10:1200,10:1200 and my refine NPC script from trunk/npc/merchants/refine.txt //===== rAthena Script ======================================= //= Refining NPCs //===== By: ================================================== //= Syrus22 (1.1) dafide18 (1.4) Skotlex (1.5) //===== Current Version: ===================================== //= 3.1 //===== Compatible With: ===================================== //= Any Athena Version //===== Description: ========================================= //= Refining NPCs and Metal Salesmen. //===== Additional Comments: ================================= //= 1.0 - by A bunch of people! //= Syrus22 - Completely redid the script using functions... also //= added the option for auto safe refining and multiple refining. //= 1.1 - Negative input bug fixed [Lupus] //= 1.2 - Added additional reparimen in morroc and payon. Added //= Christopher the blacksmith in Geffen. Edited some dialogue [kobra_k88] //= 1.3 - New Payon Locations [Darkchild] //= Corrected zeny subtraction thx to jpnmania77.[kobra_k88] //= 1.3a - Temporary corrected an exploit. Need to check sources //= to fully fix bug [shinigami] //= Fixed repairman prices [shadowlady] //= Fixed bug that skips requirements thanks to sir_loon [massdriller] //= Fixed itemid error thanks to -Vitamin- [massdriller] //= 1.4 - check again item in refining procedure to avoid //= hacker that can change item [dafide18] //= 1.5 - Fixed crashing due to badly used callfunc's [skotlex] // Lupus, don't rollback this important fix again! >.< //= 1.5a - Corrected an unneeded callfunc, fixed the anti-bot //= exploit ruining the safe refine loop. [skotlex] //= 1.5b - Fixed Spelling mistakes. [Nexon] //= 1.6 - Replaced all breaks for ends as per the new script engine [skotlex] //= 1.7 - Added Einbroch Refiners (Custom names ^^ and a duplicated BS Shop. [Poki#3] //= 1.8 - Added Lighthalzen Refiners (Custom names again ^^ [Poki#3] //= 1.8a - Fixed wrong indication thanks to NeoSaro [Lupus] //= 1.9 - Rewrote repairman, removed the Steel from repair cost [DracoRPG] //= 2.0 - Fixed missed equppment presence check. Thx2 Coltaro [Lupus] //= 2.0a - Added weight checks thanks to Neouni [Playtester] //= 2.0b - Fixed the names of Lighthalzen and Einbroch refiners thanks to Maud_Dib [Kargha] //= 2.1 - Removed Duplicates [silent] //= 2.2 - Changed name from "Emvertacon" to "Emveretarcon". [samuray22] // - Thanks to Barron-Monster. //= 2.2b - Changed name from "Pharacon" to "Phracon". [samuray22] // - Thanks to Barron-Monster. //= 2.3 Corrected NPC names to fall within proper restrictions. [L0ne_W0lf] //= 2.4 Updated Refiner function. cleaner, and less dated. [L0ne_w0lf] //= 2.5 Rather large update to the refiner and merchants. [L0ne_W0lf] //= 2.6 Fixed a few bugs with creating pure stones. [L0ne_W0lf] //= 2.7 Refiner function accepts additional paramater. [L0ne_W0lf] //= 0 = No special features; 1 = new refining features //= Updated Repairmen and function. No longer shows menu. //= 2.7a A couple touch-ups to the repairman function. [L0ne_w0lf] //= 2.8 Changed the nonexistent variable [email protected]$ for getitemname([email protected]). (bugreport:2340) [samuray22] //= 2.8 Added proper Blacksmith Supplier to Einroch. [L0ne_W0lf] //= Updated dated features comment to reflect new usage. //= 2.8a Small bugfix. (bugreport:2418) [Paradox924X] //= 2.9 Moved Morroc repairman to Morroc Ruins. [L0ne_W0lf] //= 3.0 Updated several NPC names and locations. [Xantara] // Added WoE map Refiners. //= 3.1 Added the new refinement & Ore creation NPC's for +11 and above Refinement. [Masao] //============================================================ //========================================================= // Christopher: Geffen Blacksmith //========================================================= geffen_in,110,172,0 script Christopher#1 63,{ mes "[Christopher Guillenrow]"; mes "Welcome to Christopher's Workshop. Ye can get all yer stuff for forging here. What business"; mes "brings ye to me?"; next; switch(select("Purchase Anvil:Purchase Forging Item:Purchase Metal:Purify Rough Ores:Cancel")) { case 1: mes "[Christopher Guillenrow]"; mes "A better Anvil gives ye a greeeater chance to make better weapons, ye know? But they'll cost ye more zeny. Just get it off yer chest and buy what fits your purposes best, laddy."; next; switch(select("Anvil - 30,000 zeny:Oridecon Anvil - 120,000 zeny:Golden Anvil - 300,000 zeny:Better Anvil than the others.:Cancel.")) { case 1: if (Zeny < 30000) { mes "[Christopher Guillenrow]"; mes "I don't think I can let ye have this with the zeny ye have. I can't lose me money because of ye."; close; } getitem 986,1; // Anvil set Zeny,Zeny-30000; mes "[Christopher Guillenrow]"; mes "This is the cheapest one, but efficient enough to forge most items. Thank ye fer shopping at me workshop. Feel free to come anytime, whenever ye need."; close; case 2: if (Zeny < 120000) { mes "[Christopher Guillenrow]"; mes "I don't think I can let ye have this with the zeny ye have. I can't lose me money because of ye."; close; } getitem 987,1; // Oridecon_Anvil set Zeny,Zeny-120000; mes "[Christopher Guillenrow]"; mes "Aye, friend ye have an eye for the anvil. This must be the proper anvil for a Blacksmith, eh? Thank ye fer shopping at me workshop. Feel free to come anytime, whenever ye need."; close; case 3: if (Zeny < 300000) { mes "[Christopher Guillenrow]"; mes "I don't think I can let ye have this with the zeny ye have. I can't lose me money because of ye."; close; } getitem 988,1; // Golden_Anvil set Zeny,Zeny-300000; mes "[Christopher Guillenrow]"; mes "This one is the best among all me stuffs in me workshop! With this, ye can rule the Blacksmith world! Thank ye fer shopping at me workshop. Feel free to come anytime, whenever ye need."; close; case 4: mes "[Christopher Guillenrow]"; mes "Well, sorry. But I don't have anythin' harder' than the Golden Anvil."; next; mes "[Christopher Guillenrow]"; mes "Me thinks 'Ringgel,' the Legendary Anvil Maker would have one. But, I don't think ye can find him, though he be somewhere in this world."; close; case 5: mes "[Christopher Guillenrow]"; mes "Okay, feel free to come anytime, whenever ye need. Fare ye well."; close; } case 2: mes "[Christopher Guillenrow]"; mes "A respectable blacksmith uses fine tools. Ye can become one o'those with me Stuff. Choose anything ye want."; next; switch(select("Mini-Furnace - 150 zeny:Iron Hammer - 1000 zeny:Golden Hammer - 3000 zeny:Oridecon Hammer - 5000 zeny:Cancel.")) { case 1: mes "[Christopher Guillenrow]"; mes "It's a much needed tool fer refining metal! So, How many do ye wish to buy? If ye want to quit, just type the number '0.'"; next; while(1) { input [email protected]; if ([email protected] == 0) { mes "[Christopher Guillenrow]"; mes "Aye, the deal is canceled. Fare ye well."; close; } else if (([email protected] < 0) || ([email protected] > 500)) { mes "[Christopher Guillenrow]"; mes "Ye can buy 500, er less."; next; } else { break; } } set [email protected],[email protected] * 150; if (Zeny < [email protected]) { mes "[Christopher Guillenrow]"; mes "I don't think I can let ye have this with the zeny ye have. I can't lose me money because of ye."; close; } if (checkweight(612,[email protected]) == 0) { mes "[Christopher Guillenrow]"; mes "Ye look like you don't got enough room in yer inventory. Put some stuff into your Kafra Storage, why don't ye?"; close; } getitem 612,[email protected]; // Portable_Furnace set Zeny,[email protected]; mes "[Christopher Guillenrow]"; mes "Thank ye fer shopping at me workshop. Feel free to come anytime, whenever ye need."; close; case 2: if (Zeny < 1000) { mes "[Christopher Guillenrow]"; mes "I don't think I can let ye have this with the zeny ye have. I can't lose me money because of ye."; close; } getitem 613,1; // Iron_Hammer set Zeny,Zeny-1000; mes "[Christopher Guillenrow]"; mes "Thank ye fer shopping at me workshop. Feel free to come anytime, whenever ye need."; close; case 3: if (Zeny < 3000) { mes "[Christopher Guillenrow]"; mes "I don't think I can let ye have this with the zeny ye have. I can't lose me money because of ye."; close; } getitem 614,1; // Golden_Hammer set Zeny,Zeny-3000; mes "[Christopher Guillenrow]"; mes "Thank ye fer shopping at me workshop. Feel free to come anytime, whenever ye need."; close; case 4: if (Zeny < 5000) { mes "[Christopher Guillenrow]"; mes "I don't think I can let ye have this with the zeny ye have. I can't lose me money because of ye."; close; } getitem 615,1; // Oridecon_Hammer set Zeny,Zeny-5000; mes "[Christopher Guillenrow]"; mes "Thank ye fer shopping at me workshop. Feel free to come anytime, whenever ye need."; close; case 5: mes "[Christopher Guillenrow]"; mes "Feel free to come anytime, whenever ye need. Fare ye well."; close; } case 3: mes "[Christopher Guillenrow]"; mes "I prepare every Metal, and only the high quality ones o'course. Now then, which one do ye need?"; next; switch(select("Phracon - 200z.:Emveretarcon - 1000z.:Cancel.")) { case 1: mes "[Christopher Guillenrow]"; mes "So, How many do ye wish to buy? If ye dont want anything, just type the number as '0.'"; next; while(1) { input [email protected]; if ([email protected] == 0) { mes "[Christopher Guillenrow]"; mes "Deal has"; mes "been canceled."; mes "Fare ye well."; close; } else if (([email protected] < 0) || ([email protected] > 500)) { mes "[Christopher Guillenrow]"; mes "Ye can buy 500, er less."; next; } else { break; } } set [email protected],[email protected] * 200; if (Zeny < [email protected]) { mes "[Christopher Guillenrow]"; mes "Ye don't have enough money. Ye know I can't sell this at a lower price... You know how the wifey nags about Zeny."; close; } if (checkweight(1010,[email protected]) == 0) { mes "[Christopher Guillenrow]"; mes "Ye look like you don't have the room to carry anythin' new. Why don't ye put some things into Kafra Storage n' come back."; close; } getitem 1010,[email protected]; // Phracon set Zeny,[email protected]; mes "[Christopher Guillenrow]"; mes "Thank ye fer shopping at me workshop. Feel free to come anytime, whenever ye need."; close; case 2: mes "[Christopher Guillenrow]"; mes "So, how many do ye wish to buy? If ye dont want anything at all, just type the number as '0.'"; next; while(1) { input [email protected]; if ([email protected] == 0) { mes "[Christopher Guillenrow]"; mes "Deal has"; mes "been canceled."; mes "Fare ye well."; close; } else if (([email protected] < 0) || ([email protected] > 500)) { mes "[Christopher Guillenrow]"; mes "Ye can buy 500, er less."; next; } else { break; } } set [email protected],[email protected] * 1000; if (Zeny < [email protected]) { mes "[Christopher Guillenrow]"; mes "I don't think I can let ye have this with the zeny ye have. I can't lose me money because of ye."; close; } if (checkweight(1011,[email protected]) == 0) { mes "[Christopher Guillenrow]"; mes "Me friend... Seems to me ye don't have Inventory space. Why doncha put some things into Kafra Storage first?"; close; } getitem 1011,[email protected]; // Emveretarcon set Zeny,[email protected]; mes "[Christopher Guillenrow]"; mes "Thank ye fer shopping at me workshop. Feel free to come anytime, whenever ye need, whenever ye want."; close; case 3: mes "[Christopher Guillenrow]"; mes "Feel free to come anytime, whenever ye need. Fare ye well."; close; } case 4: mes "[Christopher Guillenrow]"; mes "I can purify yer Oridecon and Elunium. I make a refined Ore out of 5 o'each rough ones. Well... Which one do ye want to make?"; next; switch(select("Make Oridecon:Make Elunium:Cancel.")) { case 1: if (countitem(756) < 5) { mes "[Christopher Guillenrow]"; mes "I told ye, I need 5 o'the rough Oridecons fer one Oridecon."; close; } else { delitem 756,5; //Oridecon_Stone getitem 984,1; // Oridecon mes "[Christopher Guillenrow]"; mes "Here's an Oridecon fer ye. Ye will be always welcome here, I'll be waitin' for ye."; close; } case 2: if (countitem(757) < 5) { mes "[Christopher Guillenrow]"; mes "I told ye, I need 5 rough Eluniums fer one Elunium."; close; } else { delitem 757,5; //Elunium_Stone getitem 985,1; // Elunium mes "[Christopher Guillenrow]"; mes "Arrr, here's yer Elunium. Yer business is always welcome here, so feel free to come again."; close; } case 3: mes "[Christopher Guillenrow]"; mes "Feel free to come anytime, whenever ye need. Fare ye well."; close; } case 5: mes "[Christopher Guillenrow]"; mes "Feel free to come anytime, whenever ye need and whenever ye want. Fare ye well."; close; } } //========================================================= // Paul Spanner: Einbroch Blacksmith Supplier //========================================================= ein_in01,38,29,0 script Paul Spanner 63,{ if (checkweight(1201,1) == 0) { mes "- Wait a minute !! -"; mes "- Currently you're carrying -"; mes "- too many items with you. -"; mes "- Please try again -"; mes "- after you loose some weight. -"; close; } mes "[Paul Spanner]"; mes "Welcome, my friend."; mes "In my shop, you will find everything that you need in forging."; mes "Tell me what you need."; next; switch(select("Purchase Anvil.:Purchase Forging Items.:Purchase Metal.:Process Ores.:Quit.")) { case 1: mes "[Paul Spanner]"; mes "Anvil is the most necessary item for Blacksmiths."; mes "Since you will use an Anvil more than once, you'd better buy a nice one."; next; switch(select("Anvil - 30,000z.:Oridecon Anvil - 120,000z.:Golden Anvil - 300,000z.:I need a better anvil.:Cancel.")) { case 1: if (zeny < 30000) { mes "[Paul Spanner]"; mes "With that much of money, you cannot even buy a toy anvil!"; close; } getitem 986,1; //Anvil set zeny,zeny-30000; mes "[Paul Spanner]"; mes "It is the cheapest anvil which has the most basic ability."; mes "Thank you for using my shop. If you need anything, just let me know."; close; case 2: if (zeny < 120000) { mes "[Paul Spanner]"; mes "With that much of money, you cannot even buy a toy anvil!"; close; } getitem 987,1; //Oridecon_Anvil set zeny,zeny-120000; mes "[Paul Spanner]"; mes "Ah, you have an eye for anvil. A Blacksmith needs an anvil at least as good as this."; mes "Thank you for using my shop. If you need anything, just let me know."; close; case 3: if (zeny < 300000) { mes "[Paul Spanner]"; mes "With that much of money, you cannot even buy a toy anvil!"; close; } getitem 988,1; //Golden_Anvil set zeny,zeny-300000; mes "[Paul Spanner]"; mes "I can tell your ambition to become a good Blacksmith just by looking at you to choose this Golden Anvil!"; mes "This anvil will surely aid you in creating the best weapons."; close; case 4: mes "[Paul Spanner]"; mes "I am sorry, but I do not sell better anvils than Golden Anvil."; mes "Unless you find the legendary anvil of 'Linggell', I don't think that you could find better one than Golden Anvil in any other places."; close; case 5: mes "[Paul Spanner]"; mes "If you need anything, just let me know."; close; } case 2: mes "[Paul Spanner]"; mes "You need various materials to process ores and to forge weapons."; mes "I have everything that you need. Take a look."; next; switch(select("Mini Furnace - 150z.:Iron Hammer - 1,000z.:Golden Hammer - 3,000z.:Oridecon Hammer - 5,000z.:Cancel.")) { case 1: set [email protected],612; set [email protected]_cost,150; set [email protected]_weight,200; mes "[Paul Spanner]"; mes "You definately need this furnce to process ores!"; next; break; case 2: set [email protected],613; set [email protected]_cost,1000; set [email protected]_weight,200; break; case 3: set [email protected],614; set [email protected]_cost,3000; set [email protected]_weight,300; break; case 4: set [email protected],615; set [email protected]_cost,5000; set [email protected]_weight,400; break; case 5: mes "[Paul Spanner]"; mes "If you need anything, just let me know."; close; } mes "[Paul Spanner]"; mes "So, how many do you need? If you want to cancel the trade, enter '0'."; next; while(1) { input [email protected]; if ([email protected] == 0) { mes "[Paul Spanner]"; mes "You have canceled the trade. If you need anything, just let me know."; close; } else if (([email protected] < 0) || ([email protected] > 500)) { mes "[Paul Spanner]"; mes "You can only buy 500 or less at a time."; next; } else { break; } } set [email protected],[email protected] * [email protected]_cost; if (zeny < [email protected]) { mes "[Paul Spanner]"; mes "You don't have enough money. Sorry, I cannot sell them at a loss."; close; } if (checkweight([email protected],[email protected]) == 0) { mes "[Paul Spanner]"; mes "Hey, you look pale. Why don't you go lighten your weight first."; close; } set zeny,[email protected]; getitem [email protected],[email protected]; mes "[Paul Spanner]"; mes "Thank you for using my shop. If you need anything, just let me know."; close; case 3: mes "[Paul Spanner]"; mes "I have high quality metal."; mes "So, which metal would you like to buy?"; next; switch(select("Phracon - 200z.:Emveretarcon - 1,000z.:Quit.")) { case 1: set [email protected],1010; set [email protected]_price,200; break; case 2: set [email protected],1011; set [email protected]_price,1000; break; case 3: mes "[Paul Spanner]"; mes "If you need anything, just let me know."; close; } mes "[Paul Spanner]"; mes "So, how many of them do you need? If you want to cancel the trade, enter '0'."; next; while(1) { input [email protected]; if ([email protected] == 0) { mes "[Paul Spanner]"; mes "The trade has been canceled. If you need anything, just let me know."; close; } else if (([email protected] < 0) || ([email protected] > 500)) { mes "[Paul Spanner]"; mes "You can buy 500 or less at a time."; next; } else { break; } } set [email protected],[email protected] * [email protected]_price; if (zeny < [email protected]) { mes "[Paul Spanner]"; mes "You don't have enough money. Sorry, I cannot sell them at a loss."; close; } if (checkweight([email protected],[email protected]) == 0) { mes "[Paul Spanner]"; mes "Hey, you look pale. Why don't you go lighten your weight first?"; close; } getitem [email protected],[email protected]; set zeny,[email protected]; mes "[Paul Spanner]"; mes "Thank you for using my shop. If you need anything, just let me know."; close; case 4: mes "[Paul Spanner]"; mes "I can process Oridecon and Elunium for you."; mes "You need 5 ores to process them into one Oridecon or Elunium."; mes "So, which one do you want to process?"; switch(select("Oridecon:Elunium:Quit.")) { case 1: if (countitem(756) < 5) { mes "[Paul Spanner]"; mes "You need 5 ores to process them into one pure Oridecon."; close; } else { delitem 756,5; //Oridecon_Stone getitem 984,1; //Oridecon mes "[Paul Spanner]"; mes "There you go. Thank you for using my service."; close; } case 2: if (countitem(757) < 5) { mes "[Paul Spanner]"; mes "You need 5 ores to process them into one pure Elunium."; close; } else { delitem 757,5; //Elunium_Stone getitem 985,1; //Elunium mes "[Paul Spanner]"; mes "There you go. Thank you for using my service."; close; } case 3: mes "[Paul Spanner]"; mes "If you need anything, just let me know."; close; } case 5: mes "[Paul Spanner]"; mes "If you need anything, just let me know."; close; } } //===================================================================================== // Weapon/Armor Refiners //===================================================================================== prt_in,63,60,0 script Hollgrehenn 85,{ callfunc "refinemain","Hollgrehenn",0; end; } morocc_in,73,38,6 script Aragham 99,{ callfunc "refinemain","Aragham",0; end; } payon,144,173,5 script Antonio 88,{ callfunc "refinemain","Antonio",0; end; } alberta_in,28,58,0 script Fredrik 85,{ callfunc "refinemain","Fredrik",0; end; } yuno_in01,171,21,4 script Lambert 88,{ callfunc "refinemain","Lambert",0; end; } ein_in01,24,87,5 script Manthasman 826,{ callfunc "refinemain","Manthasman Pruhag",0; end; } hu_in01,98,382,5 script Fulerr 869,{ callfunc "refinemain","Fulerr",0; end; } //============================================================ //= Main Refiner Function //============================================================ //= To allow auto safe refining/multiple refining set the //= second argument to '1' in the function call. //= If you enable this function make sure you set the appropiate +x Level in your refine_db.txt //= to 100 and adjust the [email protected] Value in the Script to your desired max. Safe Level. //= Otherwise it won't work . //============================================================ function script refinemain { set [email protected],getarg(1); mes "[" + getarg(0) + "]"; mes "I'm the Armsmith."; mes "I can refine all kinds of weapons, armor and equipment, so let me"; mes "know what you want me to refine."; next; setarray [email protected]$[1], "Head","Body","Left hand","Right hand","Robe","Shoes","Accessory 1","Accessory 2","Head 2","Head 3"; set [email protected]$,""; for( set [email protected],1; [email protected] <= 10; set [email protected],[email protected]+1 ) { if( getequipisequiped([email protected]) ) set [email protected]$, [email protected]$ + [email protected]$[[email protected]] + "-" + "[" + getequipname([email protected]) + "]"; set [email protected]$, [email protected]$ + ":"; } set [email protected],select([email protected]$); if(!getequipisequiped([email protected])) { mes "[" + getarg(0) + "]"; mes "You're not wearing"; mes "anything there that"; mes "I can refine."; emotion 6; close; } //Check if the item is refinable... if(!getequipisenableref([email protected])) { mes "[" + getarg(0) + "]"; mes "I don't think I can"; mes "refine this item at all..."; close; } //Check if the item is identified... (Don't know why this is in here... but kept it anyway) if(!getequipisidentify([email protected])) { mes "[" + getarg(0) + "]"; mes "You can't refine this"; mes "if you haven't appraised"; mes "it first. Make sure your"; mes "stuff is identified before"; mes "I can refine it."; close; } //Check to see if the items is already +10 if(getequiprefinerycnt([email protected]) >= 10) { mes "[" + getarg(0) + "]"; mes "I can't refine this"; mes "any more. This is as"; mes "refined as it gets!"; close; } set [email protected], getequipid([email protected]); // save id of the item set [email protected], getequiprefinerycnt([email protected]); //save refinery count switch(getequipweaponlv([email protected])){ case 0: //Refine Armor set [email protected],2000; set [email protected],985; set [email protected],4; break; case 1: //Refine Level 1 Weapon set [email protected],50; set [email protected],1010; set [email protected],7; break; case 2: //Refine Level 2 Weapon set [email protected],200; set [email protected],1011; set [email protected],6; break; case 3: //Refine Level 3 Weapon set [email protected],5000; set [email protected],984; set [email protected],5; break; case 4: //Refine Level 4 Weapon set [email protected],20000; set [email protected],984; set [email protected],4; break; case 5: //Refine other stuff? set [email protected],2000; set [email protected],985; set [email protected],4; break; } if([email protected] != 1) { mes "[" + getarg(0) + "]"; mes "To refine this I need"; mes "one ^003366"+getitemname([email protected])+"^000000 and"; mes "a service fee of " + [email protected] + " Zeny."; mes "Do you really wish to continue?"; next; if(select("Yes:No") == 2){ mes "[" + getarg(0) + "]"; mes "Yeah..."; mes "There's no need to"; mes "rush. Take your time."; close; } if(getequippercentrefinery([email protected]) < 100) { mes "[" + getarg(0) + "]"; mes "Oh no! If I continue to"; mes "refine this, there's a risk it could"; switch([email protected]) { case 985: mes "be destroyed! That means that ^FF0000this equipment^000000, and ^FF0000any cards^000000 or special properties added to this armor, ^FF0000will be gone^000000."; break; default: mes "be destroyed, and you'd ^FF0000lose the weapon^000000, any ^FF0000cards in the weapon^000000,"; mes "or any added special properties."; break; } next; mes "["+getarg(0)+"]"; mes "I can't make it any clearer."; mes "Once a weapon is destroyed,"; mes "there's no getting it back."; mes "You really have a chance to"; mes "^FF0000lose this weapon^000000 forever."; mes "Do you still want to refine?"; next; if(select("Yes:No") == 2){ mes "[" + getarg(0) + "]"; mes "I completely agree..."; mes "I might be a great refiner, but sometimes even I make mistakes."; close; } } if((countitem([email protected]) < 1) || (Zeny < [email protected])) { mes "[" + getarg(0) + "]"; mes "You don't seem to have"; mes "enough Zeny or "+getitemname([email protected])+"..."; mes "Go get some more. I'll be"; mes "here all day if you need me."; close; } set Zeny,[email protected]; delitem [email protected],1; if(getequipisequiped([email protected]) == 0) { // hacker has removed the item (not changed, why?) mes "[" + getarg(0) + "]"; mes "Look here... you don't have any Items on..."; close; } if(getequiprefinerycnt([email protected]) != [email protected] || getequipid([email protected]) != [email protected]) { // hacker has changed the item mes "[" + getarg(0) + "]"; Emotion e_an; mes "Wait a second..."; mes "Do you think I'm stupid?!"; mes "You switched the item while I wasn't looking! Get out of here!"; close; } if(getequippercentrefinery([email protected]) <= rand(100)) { failedrefitem [email protected]; mes "[" + getarg(0) + "]"; set [email protected],rand(1,5); if ([email protected] == 1) { Emotion e_cash; } else { Emotion e_swt; } set [email protected],rand(1,3); if ([email protected] == 1) { mes "OH! MY GOD!"; mes "Damn it! Not again!"; mes "I'm terribly sorry, but you know practice does make perfect."; mes "Um, right? Heh heh..."; } else if([email protected] == 2) { mes "Nooooooo!"; mes "It broke!"; mes "I-I'm sorry!"; } else { mes "Crap!"; mes "It couldn't take"; mes "much more tempering!"; mes "Sorry about this..."; } close; } mes "["+getarg(0)+"]"; successrefitem [email protected]; Emotion e_heh; set [email protected],rand(1,3); if ([email protected] == 1) { mes "Perfect!"; mes "Heh heh!"; mes "Once again,"; mes "flawless work"; mes "from the master~"; } else if([email protected] == 2) { mes "Success...!"; mes "Yet again, my amazing"; mes "talent truly dazzles"; mes "and shines today."; } else { mes "Heh heh!"; mes "I'm all done."; mes "No doubt, my work is"; mes "to your satisfaction."; mes "Sheer, utter perfection~"; } close; } // New Refining Functions ======================== if(getequiprefinerycnt([email protected]) < [email protected]) { mes "[" + getarg(0) + "]"; mes "I can refine this to the safe limit or a desired number of times... it's your choice..."; next; set [email protected],select("To the safe limit please.","I'll decide how many times.","I've changed my mind..."); } else set [email protected],2; switch([email protected]){ case 1: set [email protected],[email protected] - getequiprefinerycnt([email protected]); break; case 2: next; mes "[" + getarg(0) + "]"; mes "So how many times would you like me to refine your item?"; next; input [email protected]; set [email protected],[email protected] + getequiprefinerycnt([email protected]); if ([email protected] < 1 || [email protected] > 10) { mes "[" + getarg(0) + "]"; mes "I can't refine this item that many times."; close; } if([email protected] > [email protected]) { set [email protected],[email protected] - [email protected]; mes "[" + getarg(0) + "]"; mes "This will try to refine the equipment " + [email protected] + " times past the safe limit. Your equipment may be destroyed... is that ok?"; next; if(select("Yes...","No...") == 2){ mes "[" + getarg(0) + "]"; mes "You said so..Hmm so be it..."; close; } } break; case 3: next; mes "[" + getarg(0) + "]"; mes "You said so..Hmm so be it..."; close; } set [email protected],[email protected] * [email protected]; mes "[" + getarg(0) + "]"; mes "That will cost you " + [email protected] + " " + getitemname([email protected]) + " and " + [email protected] + " Zeny. Is that ok?"; next; if(select("Yes","No...") == 2){ mes "[" + getarg(0) + "]"; mes "You said so..Hmm so be it..."; close; } if(countitem([email protected]) < [email protected] || Zeny < [email protected]) { mes "[" + getarg(0) + "]"; mes "Is that all you got? Unfortunately I can't work for you at a lower price. Try putting yourself in my shoes."; close; } set Zeny,Zeny - [email protected]; delitem [email protected],[email protected]; while([email protected]){ if (getequipisequiped([email protected]) == 0) { mes "[" + getarg(0) + "]"; mes "Look here... you don't have any Items on..."; close; } if (getequipid([email protected]) != [email protected] || ([email protected] == 1 && getequippercentrefinery([email protected]) < 100)) { mes "[" + getarg(0) + "]"; mes "Clan... No, but Did you imagine I could be so stupid !?!"; mes "You have changed it..."; mes "Go out before I stun you with my Hammer!!!"; close; } mes "Clang, clang!!!"; if([email protected] == 2 && getequippercentrefinery([email protected]) <= rand(100)) { failedrefitem [email protected]; emotion 23; mes "[" + getarg(0) + "]"; mes "WAHHHH!!! I'm so sorry... I warned you this could happen..."; set [email protected],[email protected] - 1; if([email protected] == 0) close; mes "Here's the unused Zeny and Material back..."; getitem [email protected],[email protected]; set [email protected],[email protected] * [email protected]; set Zeny,Zeny + [email protected]; close; } successrefitem [email protected]; emotion 21; set [email protected],[email protected] - 1; next; } mes "[" + getarg(0) + "]"; mes "All finished... Come again soon."; close; } //============================================================================== // Material Salesmen //============================================================================== prt_in,56,68,5 script Vurewell 86,{ callfunc "phramain","Vurewell"; end; } payon,145,178,3 script Begnahd 88,{ callfunc "phramain","Begnahd"; end; } morocc_in,63,32,6 script Sade 99,{ callfunc "phramain","Sade"; end; } alberta_in,13,71,3 script Kahlamanlith 86,{ callfunc "phramain","Kahlamanlith"; end; } yuno_in01,171,27,4 script Dilemma 88,{ callfunc "phramain","Dilemma"; end; } ein_in01,15,87,3 script Tirehaus 86,{ callfunc "phramain","Tirehaus"; end; } lhz_in02,278,24,3 script Krugg 86,{ callfunc "phramain","Krugg"; end; } //============================================================ //= Material Salesmen Functions //============================================================ function script phramain { if (checkweight(1201,1) == 0) { mes "- Wait a minute !! -"; mes "- Currently you're carrying -"; mes "- too many items with you. -"; mes "- Please try again -"; mes "- after you loose some weight. -"; close; } mes "[" + getarg(0) + "]"; mes "I sell 2 kinds of Metal"; mes "for tempering weaponry."; mes "I have ^007777Phracon^000000 for Level 1"; mes "Weapons, and ^007777Emveretarcon^000000"; mes "for Level 2 Weapons."; next; switch(select("Phracon - 200 Zeny:Emveretarcon - 1000 Zeny:Ask about other Metals")) { case 1: set [email protected],1010; set [email protected],200; break; case 2: set [email protected],1011; set [email protected],1000; break; case 3: mes "[" + getarg(0) + "]"; mes "Other metals?"; mes "Well, you'll need special metals to upgrade higher level weapons, or any kind of armor. But you know, Oridecon and Elunium is really"; mes "hard to just find..."; close; } mes "[" + getarg(0) + "]"; mes "So how many do you wish to buy?"; mes "If you don't want any, please enter the number, '0.'"; next; while(1) { input [email protected]; if ([email protected] == 0) { mes "[" + getarg(0) + "]"; mes "The deal has"; mes "been cancelled."; close; } else if ([email protected] < 0 || [email protected] > 500) { mes "[" + getarg(0) + "]"; mes "Alright, you can"; mes "puchase up to 500."; mes "No more than that,"; mes "got it? Good."; next; } else { break; } } set [email protected],[email protected] * [email protected]; if (Zeny < [email protected]) { mes "[" + getarg(0) + "]"; mes "Err..."; mes "You don't have"; mes "enough Zeny to buy"; mes ""+ [email protected] +" of them."; close; } if (checkweight([email protected],[email protected]) == 0) { mes "[" + getarg(0) + "]"; mes "Hmm..."; mes "I can't give you anything if you don't have enough room in your inventory. Why don't you put your extra things in Kafra Storage and try again?"; close; } getitem [email protected],[email protected]; set Zeny,[email protected]; mes "[" + getarg(0) + "]"; mes "Here you are!"; mes "Thank you for"; mes "your patronage."; close; } //============================================================================== // Ori/Elu Refiners //============================================================================== prt_in,63,69,3 script Dietrich 84,{ callfunc "orimain","Dietrich"; end; } payon,137,178,5 script Hakhim 88,{ callfunc "orimain","Hakhim"; end; } morocc_in,72,32,6 script Abdula 99,{ callfunc "orimain","Abdula"; end; } alberta_in,21,63,5 script Xenophon 84,{ callfunc "orimain","Xenophon Zolotas"; end; } yuno_in01,164,27,4 script Delight 88,{ callfunc "orimain","Delight"; end; } ein_in01,18,82,6 script Matestein 84,{ callfunc "orimain","Matestein"; end; } lhz_in02,281,24,5 script Fruel 84,{ callfunc "orimain","Fruel"; end; } //============================================================ //= Ori/Elu Functions //============================================================ function script orimain { if (checkweight(1201,1) == 0) { mes "- Wait a minute !! -"; mes "- Currently you're carrying -"; mes "- too many items with you. -"; mes "- Please try again -"; mes "- after you loose some weight. -"; close; } mes "[" + getarg(0) + "]"; mes "I can purify your"; mes "Rough Oridecons or"; mes "Rough Eluniums. I'll need"; mes "5 Rough Stones to make"; mes "1 pure one for you."; next; switch(select("Make Oridecon:Make Elunium:Ask about Enchanted Stones")) { case 1: if (countitem(756) > 4) { delitem 756,5; //Oridecon_Stone getitem 984,1; // Oridecon mes "[" + getarg(0) + "]"; mes "Here's your Oridecon."; mes "You're welcome to come"; mes "back whenever you want."; close; } else { mes "[" + getarg(0) + "]"; mes "You're kidding me, right?"; mes "I just told you that I need 5 Rough Oridecons to make a pure Oridecon."; close; } case 2: if (countitem(757) > 4) { delitem 757,5; //Elunium_Stone getitem 985,1; // Elunium mes "[" + getarg(0) + "]"; mes "Here's your Elunium."; mes "You're welcome to come"; mes "back whenever you want."; close; } else { mes "[" + getarg(0) + "]"; mes "You're kidding me, right?"; mes "I just told you that I need 5 Rough Eluniums to make a pure Elunium."; close; } case 3: mes "[" + getarg(0) + "]"; mes "Enchanted Stones...?"; mes "I've been a stonesmith for 20 years, so I've heard a lot about them. Supposedly, there are"; mes "four different kinds."; next; mes "[" + getarg(0) + "]"; mes "Each Enchanted Stone possesses one of the following elemental properties: Earth, Wind, Water and Fire."; next; mes "[" + getarg(0) + "]"; mes "If someone combines a Enchanted Stone with a weapon while smithing, that weapon will possess the same property as the Stone."; next; mes "[" + getarg(0) + "]"; mes "Needless to say, you need to have some smithing skill to produce this kind of elemental weapon."; close; } } //===================================================================================== // Equipment Repairmen //===================================================================================== alberta_in,31,65,4 script Repairman#alb 86,{ callfunc "repairmain","Repairman"; end; } moc_ruins,107,94,4 script Repairman#moc 99,{ callfunc "repairmain","Repairman"; end; } payon,143,165,4 script Repairman#pay 88,{ callfunc "repairmain","Repairman"; end; } prt_in,63,54,2 script Repairman#prt 86,{ callfunc "repairmain","Grendal"; end; } yuno_in01,175,28,3 script Repairman#juno 86,{ callfunc "repairmain","Repairman"; end; } geffen_in,34,166,3 script Repairman#gef 99,{ callfunc "repairmain","Repairman"; end; } aldeba_in,38,60,3 script Repairman#alde 86,{ callfunc "repairmain","Repairman"; end; } lhz_in02,284,14,3 script Repairman#lhz 86,{ callfunc "repairmain","Repairman"; end; } prt_gld,139,117,4 script Repairman#prt_gld 86,{ callfunc "repairmain","Repairman"; end; } gef_fild13,263,117,4 script Repairman#gef_fild 86,{ callfunc "repairmain","Repairman"; end; } pay_gld,295,183,4 script Repairman#pay_gld 86,{ callfunc "repairmain","Repairman"; end; } alde_gld,220,152,4 script Repairman#alde_gld 86,{ callfunc "repairmain","Repairman"; end; } aru_gld,189,336,4 script Repairman#aru_gld 86,{ callfunc "repairmain","Repairman"; end; } sch_gld,340,80,7 script Repairman#sch_gld 86,{ callfunc "repairmain","Repairman"; end; } //============================================================ //= Equipment Repair Function //============================================================ function script repairmain { set [email protected],5000; mes "["+getarg(0)+"]"; mes "Hey there!"; mes "Do you want me"; mes "to repair any items?"; mes "You can count on me"; mes "for item repairs!"; next; switch(select("Actually, I do have some items...:None at the moment.")) { case 1: set [email protected],1; while (1) { if (getbrokenid([email protected]) == 0) { break; } set [email protected],[email protected]+1; } set [email protected],[email protected]; if ([email protected]) { mes "["+getarg(0)+"]"; mes "Oh wow, this is incredible!"; mes "You must take very good care of your things. None of your items are damaged!"; next; mes "["+getarg(0)+"]"; mes "If everyone is like you, I'm going to be unemployed!! Haha~!"; close; } mes "["+getarg(0)+"]"; mes "Hmm..."; mes "Let's see..."; mes "Out of all your items,"; mes "" + [email protected] + " are damaged."; mes "Would you like to repair?"; next; set [email protected],[email protected]*[email protected]; mes "["+getarg(0)+"]"; mes "Each repair costs " + [email protected] + " Zeny. So to repair all your damaged items would cost " + [email protected] + " Zeny! Would you like to repair the items?"; next; switch(select("Yes:No")) { case 1: if (Zeny < [email protected]) { mes "["+getarg(0)+"]"; mes "Whoa whoa..."; mes "Check your wallet before you receive the repair bill! I can't repair anything because you don't have enough Zeny."; close; } set [email protected],1; while (1) { if (getbrokenid([email protected]) == 0) { break; } set [email protected],[email protected]+1; } set [email protected],[email protected]; if ([email protected] == [email protected]) { set zeny,[email protected]; while ([email protected]) { repair([email protected]); set [email protected],[email protected]; } mes "["+getarg(0)+"]"; mes "Okay! All done. Now, try to be a little more careful. Items have lives too you know."; close; } else { mes "["+getarg(0)+"]"; mes "Mmm? Something's wrong. Wait... Equip the items you need to repair and then come back to me."; close; } case 2: mes "["+getarg(0)+"]"; mes "Well, it's no skin off my nose, but it's not good to leave items damaged. You should get them repaired as soon as possible!"; close; } case 2: mes "["+getarg(0)+"]"; mes "Hohoho..."; mes "You don't have"; mes "any business with me"; mes "if you don't have any"; mes "items to repair."; close; } } //===================================================================================== // +11 and above Weapon/Armor Refiners //===================================================================================== prt_in,90,72,5 script Bestry#prt 826,{ callfunc "refinenew","Bestry",0,0; end; } morocc_in,64,41,5 script Bestry#moc 826,{ callfunc "refinenew","Bestry",0,0; end; } payon_in01,18,132,3 script Bestry#pay 826,{ callfunc "refinenew","Bestry",0,0; end; } //===================================================================================== // +11 and above Weapon/Armor Function //===================================================================================== //= To allow auto safe refining/multiple refining set the //= second argument to '1' in the function call. //= If you enable this function make sure you set the appropiate +x Level in your refine_db.txt //= to 100 and adjust the [email protected] Value in the Script to your desired max. Safe Level. //= Otherwise it won't work . //= //= In the official script the NPC uses an new Command which is called 'GetExdEquipIsSuccessRefinery', //= this command seems to generate a random number between 1 and 3 to decide either of //= the following: //= 1: Success //= 2: Downgrade //= 3: Failure //= //= If you want to enable that feature just set the third argument to '1' in the function call. //= Otherwise it will use the % chance in your refine_db.txt . //= Side Note: Current values for +11 and above upgrading in the refine_db.txt are custom. //===================================================================================== function script refinenew { mes "["+ getarg(0) +"]"; mes "I am the best Blacksmith ever!"; mes "I don't work with normal, boring items."; mes "But only with items that are level 10 or higher!"; next; mes "["+ getarg(0) +"]"; mes "Anyway, you may use my services if your item is lv 10 or higher."; mes "What do you want to have refined?"; next; setarray [email protected]$[1],"Head","Body","Left hand","Right hand","Robe","Shoes","Accessory 1","Accessory 2","Head 2","Head 3"; set [email protected]$,""; for( set [email protected],1; [email protected] <= 10; set [email protected],[email protected]+1 ) { if( getequipisequiped([email protected]) ) set [email protected]$, [email protected]$ + [email protected]$[[email protected]] + "-" + "[" + getequipname([email protected]) + "]"; set [email protected]$, [email protected]$ + ":"; } set [email protected],select([email protected]$); if(!getequipisequiped([email protected])) { mes "[" + getarg(0) + "]"; mes "You're not wearing"; mes "anything there that"; mes "I can refine."; emotion e_an; close; } //Check if the item is refinable... if(!getequipisenableref([email protected])) { mes "[" + getarg(0) + "]"; mes "I don't think I can"; mes "refine this item at all..."; close; } //Check if the item is identified... (Don't know why this is in here... but kept it anyway) if(!getequipisidentify([email protected])) { mes "[" + getarg(0) + "]"; mes "You can't refine this"; mes "if you haven't appraised"; mes "it first. Make sure your"; mes "stuff is identified before"; mes "I can refine it."; close; } //Check to see if the items is at least +10 if(getequiprefinerycnt([email protected]) < 10) { mes "["+ getarg(0) +"]"; mes "I said I don't work with Equipment under lv. 10."; close; } if(getequiprefinerycnt([email protected]) >= 20) { mes "["+ getarg(0) +"]"; mes "I can't refine this"; mes "any more. This is as"; mes "refined as it gets!"; close; } set [email protected], getequipid([email protected]); // save id of the item set [email protected], getequiprefinerycnt([email protected]); //save refinery count if ((getequipweaponlv([email protected]) >= 1) && (getequipweaponlv([email protected]) <= 4)) { set [email protected],6224; set [email protected],100000; set [email protected],10; mes "["+ getarg(0) +"]"; mes "Hmm a weapon, is that ok?"; mes "If you want to refine this weapon,"; mes "I will need 1 ^003366Bradium^000000 and 100,000 zeny."; mes "Are you sure you want to continue?"; } else { set [email protected],6223; set [email protected],100000; set [email protected],10; mes "["+ getarg(0) +"]"; mes "Hmm an armor, is that ok?"; mes "If you want to refine this armor,"; mes "I will need 1 ^003366Carnium^000000 and 100,000 zeny."; mes "Are you sure you want to continue?"; } next; if(select("Yes:No") == 2){ mes "["+ getarg(0) +"]"; mes "Well, no challenge is one way.."; mes "No risk.. that could be wise."; close; } if(getarg(1) != 1) { if ((getequipweaponlv([email protected]) >= 1) && (getequipweaponlv([email protected]) <= 4)) { mes "["+ getarg(0) +"]"; mes "This weapon already has been refined serveral times."; mes "It could be destroyed if you try more."; mes "It won't break 100%, but is has a small chance."; next; mes "["+ getarg(0) +"]"; mes "You could have the upgrade level of the weapon decreased,"; mes "or if it breaks, you will lose ^FF0000any cards^000000 or special properties added to it."; } else { mes "["+ getarg(0) +"]"; mes "This armor already has been refined serveral times."; mes "It could be destroyed if you try more."; mes "It won't break 100%, but is has a small chance."; next; mes "["+ getarg(0) +"]"; mes "You could have the upgrade level of the armor decreased,"; mes "or if it breaks, you will lose ^FF0000any cards^000000 or special properties added to it."; } next; mes "["+ getarg(0) +"]"; mes "Do you want me to refine it?"; mes "I think I gave you enough warnings."; next; switch (select("Yes.:No.")) { case 1: break; case 2: mes "["+ getarg(0) +"]"; mes "Well, no challenge is one way.."; mes "No risk.. that could be wise."; close; } if(countitem([email protected]) < 1 || Zeny < [email protected]) { mes "["+ getarg(0) +"]"; mes "Hm, it seems you don't have enough materials or money."; mes "Please check it out."; close; } set Zeny,Zeny - [email protected]; delitem [email protected],1; if(getequipisequiped([email protected]) == 0) { // hacker has removed the item (not changed, why?) mes "[" + getarg(0) + "]"; mes "Look here... you don't have any Items on..."; close; } if(getequiprefinerycnt([email protected]) != [email protected] || getequipid([email protected]) != [email protected]) { // hacker has changed the item mes "[" + getarg(0) + "]"; Emotion e_an; mes "Wait a second..."; mes "Do you think I'm stupid?!"; mes "You switched the item while I wasn't looking! Get out of here!"; close; } if(getarg(2) == 1){ set [email protected],rand(1,3); if ([email protected] == 1) { mes "Clang! Clang! Clang! Clang!"; successrefitem [email protected]; next; emotion e_no1; mes "["+ getarg(0) +"]"; mes "Good! Succes!!!"; mes "I am the best Blacksmith."; close; } if ([email protected] == 2) { mes "["+ getarg(0) +"]"; mes "Clang! Clang! Clang! Clang!"; downrefitem [email protected]; next; set [email protected], rand(1,5); if ([email protected] == 1) { emotion e_cash; } else { emotion e_omg; } mes "["+ getarg(0) +"]"; mes "Ahhh!!!"; next; mes "["+ getarg(0) +"]"; mes "Oh my!"; mes "The upgrade level has dropped..."; mes "There could've been made an mistake even though I am the best ever."; mes "It was out of my hands."; next; mes "["+ getarg(0) +"]"; mes "I will do a better job next time! Don't worry!"; close; } mes "["+ getarg(0) +"]"; mes "Clang! Clang! Clang!"; failedrefitem [email protected]; next; set [email protected], rand(1,5); if ([email protected] == 1) { emotion e_cash; } else { emotion e_omg; } mes "["+ getarg(0) +"]"; mes "Hmmm!"; next; mes "["+ getarg(0) +"]"; mes "Oh my! I've failed to refine stuff..."; mes "I didn't mean it!"; mes "There could've been made an mistake even though I am the best ever."; mes "It was out of my hands."; next; mes "["+ getarg(0) +"]"; mes "I will do a better job next time! Don't worry!"; close; } set [email protected],rand(100); if (getequippercentrefinery([email protected]) > [email protected]) { mes "Clang! Clang! Clang! Clang!"; successrefitem [email protected]; next; emotion e_no1; mes "["+ getarg(0) +"]"; mes "Good! Succes!!!"; mes "I am the best Blacksmith."; close; } if (getequippercentrefinery([email protected]) < [email protected]) { mes "["+ getarg(0) +"]"; mes "Clang! Clang! Clang! Clang!"; downrefitem [email protected]; next; set [email protected], rand(1,5); if ([email protected] == 1) { emotion e_cash; } else { emotion e_omg; } mes "["+ getarg(0) +"]"; mes "Ahhh!!!"; next; mes "["+ getarg(0) +"]"; mes "Oh my!"; mes "The upgrade level has dropped..."; mes "There could've been made an mistake even though I am the best ever."; mes "It was out of my hands."; next; mes "["+ getarg(0) +"]"; mes "I will do a better job next time! Don't worry!"; close; } mes "["+ getarg(0) +"]"; mes "Clang! Clang! Clang!"; failedrefitem [email protected]; next; set [email protected], rand(1,5); if ([email protected] == 1) { emotion e_cash; } else { emotion e_omg; } mes "["+ getarg(0) +"]"; mes "Hmmm!"; next; mes "["+ getarg(0) +"]"; mes "Oh my! I've failed to refine stuff..."; mes "I didn't mean it!"; mes "There could've been made an mistake even though I am the best ever."; mes "It was out of my hands."; next; mes "["+ getarg(0) +"]"; mes "I will do a better job next time! Don't worry!"; close; } // New +11 and above Refining Functions ======================== if(getequiprefinerycnt([email protected]) < [email protected]) { mes "[" + getarg(0) + "]"; mes "I can refine this to the safe limit or a desired number of times... it's your choice..."; next; set [email protected],select("To the safe limit please.","I'll decide how many times.","I've changed my mind..."); } else { set [email protected],2; } switch([email protected]){ case 1: set [email protected],[email protected] - getequiprefinerycnt([email protected]); break; case 2: next; mes "[" + getarg(0) + "]"; mes "So how many times would you like me to refine your item?"; next; input [email protected]; set [email protected],[email protected] + getequiprefinerycnt([email protected]); if ([email protected] < 1 || [email protected] > 10) { mes "[" + getarg(0) + "]"; mes "I can't refine this item that many times."; close; } if([email protected] > [email protected]) { set [email protected],[email protected] - [email protected]; mes "[" + getarg(0) + "]"; mes "This will try to refine the equipment " + [email protected] + " times past the safe limit. Your equipment may be destroyed... is that ok?"; next; if(select("Yes...","No...") == 2){ mes "[" + getarg(0) + "]"; mes "You said so..Hmm so be it..."; close; } } break; case 3: next; mes "[" + getarg(0) + "]"; mes "You said so..Hmm so be it..."; close; } set [email protected],[email protected] * [email protected]; mes "[" + getarg(0) + "]"; mes "That will cost you " + [email protected] + " " + getitemname([email protected]) + " and " + [email protected] + " Zeny. Is that ok?"; next; if(select("Yes","No...") == 2){ mes "[" + getarg(0) + "]"; mes "You said so..Hmm so be it..."; close; } if(countitem([email protected]) < [email protected] || Zeny < [email protected]) { mes "[" + getarg(0) + "]"; mes "Is that all you got? Unfortunately I can't work for you at a lower price. Try putting yourself in my shoes."; close; } set Zeny,Zeny - [email protected]; delitem [email protected],[email protected]; while([email protected]){ if (getequipisequiped([email protected]) == 0) { mes "[" + getarg(0) + "]"; mes "Look here... you don't have any Items on..."; close; } if (getequipid([email protected]) != [email protected] || ([email protected] == 1 && getequippercentrefinery([email protected]) < 100)) { mes "[" + getarg(0) + "]"; mes "Clan... No, but Did you imagine I could be so stupid !?!"; mes "You have changed it..."; mes "Go out before I stun you with my Hammer!!!"; close; } if(getarg(2) == 1){ set [email protected],rand(1,3); if ([email protected] == 1) { mes "Clang! Clang! Clang! Clang!"; successrefitem [email protected]; next; emotion e_no1; mes "["+ getarg(0) +"]"; mes "Good! Succes!!!"; mes "I am the best Blacksmith."; close; } if ([email protected] == 2) { mes "["+ getarg(0) +"]"; mes "Clang! Clang! Clang! Clang!"; downrefitem [email protected]; next; set [email protected], rand(1,5); if ([email protected] == 1) { emotion e_cash; } else { emotion e_omg; } mes "["+ getarg(0) +"]"; mes "Ahhh!!!"; next; mes "["+ getarg(0) +"]"; mes "Oh my!"; mes "The upgrade level has dropped..."; mes "There could've been made an mistake even though I am the best ever."; mes "It was out of my hands."; next; mes "["+ getarg(0) +"]"; mes "I will do a better job next time! Don't worry!"; close; } mes "["+ getarg(0) +"]"; mes "Clang! Clang! Clang!"; failedrefitem [email protected]; next; set [email protected], rand(1,5); if ([email protected] == 1) { emotion e_cash; } else { emotion e_omg; } mes "["+ getarg(0) +"]"; mes "Hmmm!"; next; mes "["+ getarg(0) +"]"; mes "Oh my! I've failed to refine stuff..."; mes "I didn't mean it!"; mes "There could've been made an mistake even though I am the best ever."; mes "It was out of my hands."; next; mes "["+ getarg(0) +"]"; mes "I will do a better job next time! Don't worry!"; close; } set [email protected],rand(100); if (getequippercentrefinery([email protected]) > [email protected]) { mes "Clang! Clang! Clang! Clang!"; successrefitem [email protected]; next; emotion e_no1; mes "["+ getarg(0) +"]"; mes "Good! Succes!!!"; mes "I am the best Blacksmith."; close; } if (getequippercentrefinery([email protected]) < [email protected]) { mes "["+ getarg(0) +"]"; mes "Clang! Clang! Clang! Clang!"; downrefitem [email protected]; next; set [email protected], rand(1,5); if ([email protected] == 1) { emotion e_cash; } else { emotion e_omg; } mes "["+ getarg(0) +"]"; mes "Ahhh!!!"; next; mes "["+ getarg(0) +"]"; mes "Oh my!"; mes "The upgrade level has dropped..."; mes "There could've been made an mistake even though I am the best ever."; mes "It was out of my hands."; next; mes "["+ getarg(0) +"]"; mes "I will do a better job next time! Don't worry!"; close; } mes "["+ getarg(0) +"]"; mes "Clang! Clang! Clang!"; failedrefitem [email protected]; next; set [email protected], rand(1,5); if ([email protected] == 1) { emotion e_cash; } else { emotion e_omg; } mes "["+ getarg(0) +"]"; mes "Hmmm!"; next; mes "["+ getarg(0) +"]"; mes "Oh my! I've failed to refine stuff..."; mes "I didn't mean it!"; mes "There could've been made an mistake even though I am the best ever."; mes "It was out of my hands."; next; mes "["+ getarg(0) +"]"; mes "I will do a better job next time! Don't worry!"; close; } mes "[" + getarg(0) + "]"; mes "All finished... Come again soon."; close; } //============================================================================== // Ori/Elu to Carnium/Bradium Refiners //============================================================================== prt_in,85,71,5 script Austry#prt 826,{ callfunc "oreref","Austry"; end; } payon_in01,14,125,5 script Austry#pay 826,{ callfunc "oreref","Austry"; end; } morocc_in,60,38,5 script Austry#moc 826,{ callfunc "oreref","Austry"; end; } //============================================================ //= Ori/Elu to Carnium/Bradium Function //============================================================ function script oreref { mes "["+ getarg(0) +"]"; mes "If you bring me 3"; mes "Oridecon or Elunium"; mes "I can exchange them for"; mes "Bradium or Carnium."; mes "Just give me 50,000z."; next; switch (select("Oridecon to Bradium.:Elunium to Carnium.:Purified Bradium to Carnium.:No thanks.")) { case 1: if ((countitem(984) > 2) && (Zeny > 49999)) { delitem 984,3; //Oridecon set Zeny, Zeny - 50000; getitem 6224,1; //Bradium mes "["+ getarg(0) +"]"; mes "Ok! Here is your Bradium."; mes "Take it and use it well."; close; } mes "["+ getarg(0) +"]"; mes "You better not be trying"; mes "to cheat me because you"; mes "don't have enough zeny"; mes "or Oridecon."; close; case 2: if ((countitem(985) > 2) && (Zeny > 49999)) { delitem 985,3; //Elunium set Zeny, Zeny - 50000; getitem 6223,1; //Carnium mes "["+ getarg(0) +"]"; mes "Ok! Here is your Carnium."; mes "Take it and use it well."; close; } mes "["+ getarg(0) +"]"; mes "You better not be trying"; mes "to cheat me because you"; mes "don't have enough zeny"; mes "or Elunium."; close; case 3: if ((countitem(6090) > 0) && (Zeny > 49999)) { delitem 6090,1; //Purified_Bradium set Zeny, Zeny - 50000; getitem 6223,1; //Carnium mes "["+ getarg(0) +"]"; mes "Refining with Purified Bradium"; mes "is a little expensive. I can"; mes "trade it for some Carnium."; mes "Take it and use it well."; close; } mes "["+ getarg(0) +"]"; mes "You better not be trying"; mes "to cheat me because you"; mes "don't have enough zeny"; mes "or Purified Bradium."; close; case 4: mes "["+ getarg(0) +"]"; mes "Hmm..."; close; } } Thanks in advance
  6. Can someone share a dice event that gives cash points..thank you..
  7. bump..can you post here the text in src men? cant download the files.
  8. Thank you..do you have a text on that men?
  9. Why dont you just patch your data folder that has an Aura.
  10. You took my name but added a 'h'!

    1. Team Infamous

      Team Infamous

      Sorry bout that..but that was may name even Own Server and in eAthena.

      Hehehehe..mine was way better thought..ahahaha Joke.

    2. Maki
  11. Can someone give me a src modification for auto mute when they flood in chat.. They will be muted for 3mins. Thank you.
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use and Privacy Policy.