Jb Roxas Posted March 29, 2012 Group: Members Topic Count: 40 Topics Per Day: 0.01 Content Count: 95 Reputation: 0 Joined: 01/28/12 Last Seen: August 21, 2012 Share Posted March 29, 2012 (edited) i want an upgrade for this script, this is from emistry just want to upgrade for Add more option like: Menu OriValk --> RareValk OriVmanteau --> RareVmanteau OriVshield --> RareVshield OriVshoes --> RareVshoes The Success chance of winning is 20% the chance of losing is 80% also if u won it will broadcast. splendide,210,199,5 script chances 757,{ set .OriValkID,2357; set .RareValkID,2305; set .Rate,10; mes "Do you want to refine your "+getitemname( .OriValkID )+" into "+getitemname( .RareValkID )+" ?"; next; if( select("Yes:No") == 2 ) close; if( !countitem( .OriValkID ) ){ mes "You didnt have "+getitemname( .OriValkID )+" now."; }else{ delitem .OriValkID,1; if( rand(100) < .Rate ){ getitem .RareValkID,1; mes "Done, congratz."; }else mes "But Failed."; } close; } Edited March 29, 2012 by Jb Roxas Quote Link to comment Share on other sites More sharing options...
Emistry Posted March 29, 2012 Group: Forum Moderator Topic Count: 93 Topics Per Day: 0.02 Content Count: 10018 Reputation: 2370 Joined: 10/28/11 Last Seen: Sunday at 05:32 PM Share Posted March 29, 2012 (edited) try this [ Pastebin ] Equipment Upgrade Settings : setarray .@OriID,2357,2358,2359,2360; setarray .@RareID,2305,2360,2359,2359; setarray .@Rates,80,20,10,50; Re-Edit : Fixing Variable Name Edited March 29, 2012 by Emistry Quote Link to comment Share on other sites More sharing options...
Jb Roxas Posted March 29, 2012 Group: Members Topic Count: 40 Topics Per Day: 0.01 Content Count: 95 Reputation: 0 Joined: 01/28/12 Last Seen: August 21, 2012 Author Share Posted March 29, 2012 set an announce pls if they got RareValkID Thank you so much. Error sir emistry i have the items on my Inventory, and when i click the npc it says Do you Want to Refine your NULL into NULL? Rate of Succes 80% splendide,210,199,5 script chances 757,{ setarray .@OriID,20096,20098,20099; setarray .@RareID,20200,20202,20201; setarray .@Rates,80,20,10; for( set .@i,0; .@i < getarraysize( .@OriID ); set .@i,.@i + 1 ) set .@Menu$,.@Menu$ + getitemname( .@OriID[.@i] )+":"; set .@i,select( .@Menu$ ) - 1; mes "Do you want to refine your "+getitemname( .OriID[.@i] )+" into "+getitemname( .RareID[.@i] )+" ?"; mes "Rate of Success : "+.@Rates[.@i]+"%"; next; if( select("Yes:No") == 1 ){ if( !countitem( .OriID[.@i] ) ){ mes "You didnt have "+getitemname( .OriID[.@i] )+" now."; }else{ delitem .OriID[.@i],1; if( rand(100) < .@Rate[.@i] ){ getitem .@RareID,1; mes "Done, congratz."; }else mes "But Failed."; } } close; } Quote Link to comment Share on other sites More sharing options...
Emistry Posted March 29, 2012 Group: Forum Moderator Topic Count: 93 Topics Per Day: 0.02 Content Count: 10018 Reputation: 2370 Joined: 10/28/11 Last Seen: Sunday at 05:32 PM Share Posted March 29, 2012 ops....several variable name wrong... find all .OriID .RareID and change to .@OriID .@RareID Quote Link to comment Share on other sites More sharing options...
Jb Roxas Posted March 29, 2012 Group: Members Topic Count: 40 Topics Per Day: 0.01 Content Count: 95 Reputation: 0 Joined: 01/28/12 Last Seen: August 21, 2012 Author Share Posted March 29, 2012 please rescript or test it i try this RATE setarray .@Rates,99,99,99; but still no winning Quote Link to comment Share on other sites More sharing options...
Emistry Posted March 29, 2012 Group: Forum Moderator Topic Count: 93 Topics Per Day: 0.02 Content Count: 10018 Reputation: 2370 Joined: 10/28/11 Last Seen: Sunday at 05:32 PM Share Posted March 29, 2012 i just updated it a minute ago....refer the the post again.... it is just another variable name typo Quote Link to comment Share on other sites More sharing options...
Jb Roxas Posted March 30, 2012 Group: Members Topic Count: 40 Topics Per Day: 0.01 Content Count: 95 Reputation: 0 Joined: 01/28/12 Last Seen: August 21, 2012 Author Share Posted March 30, 2012 it works perfect, how about putting a announcer if u won the RareID and also Broadcast the OriID Here's how they broadcast If you won - Wow "name of the player" has successfully Refine the OriID to RareID if you lost - Omg "name of the player" has broke the OriID Quote Link to comment Share on other sites More sharing options...
Emistry Posted March 30, 2012 Group: Forum Moderator Topic Count: 93 Topics Per Day: 0.02 Content Count: 10018 Reputation: 2370 Joined: 10/28/11 Last Seen: Sunday at 05:32 PM Share Posted March 30, 2012 change if( rand(100) < .@Rates[.@i] ){ getitem .@RareID[.@i],1; mes "Done, congratz."; }else{ mes "But Failed."; } to this if( rand(100) < .@Rates[.@i] ){ getitem .@RareID[.@i],1; mes "Done, congratz."; announce "Wow.."+strcharinfo(0)+" has successfully Refine the "+getitemname( .@OriID[.@i] )+" to "+getitemname( .@RareID[.@i] ),0; }else{ mes "But Failed."; announce strcharinfo(0)+" has broke "+getitemname( .@OriID[.@i] ),0; } Quote Link to comment Share on other sites More sharing options...
Jb Roxas Posted March 30, 2012 Group: Members Topic Count: 40 Topics Per Day: 0.01 Content Count: 95 Reputation: 0 Joined: 01/28/12 Last Seen: August 21, 2012 Author Share Posted March 30, 2012 thank you so much, i will try it later and post if there's an error. Request Solved by Emistry Big thanks. Quote Link to comment Share on other sites More sharing options...
WhatFT Posted March 30, 2012 Group: Members Topic Count: 142 Topics Per Day: 0.03 Content Count: 511 Reputation: 7 Joined: 02/15/12 Last Seen: April 11, 2014 Share Posted March 30, 2012 Hey, what is this script all about? Can I ask? XD Quote Link to comment Share on other sites More sharing options...
Emistry Posted March 30, 2012 Group: Forum Moderator Topic Count: 93 Topics Per Day: 0.02 Content Count: 10018 Reputation: 2370 Joined: 10/28/11 Last Seen: Sunday at 05:32 PM Share Posted March 30, 2012 upgrade 1 items into another items... Quote Link to comment Share on other sites More sharing options...
Question
Jb Roxas
i want an upgrade for this script, this is from emistry
just want to upgrade for
Add more option like:
Menu
OriValk --> RareValk
OriVmanteau --> RareVmanteau
OriVshield --> RareVshield
OriVshoes --> RareVshoes
The Success chance of winning is 20% the chance of losing is 80%
also if u won it will broadcast.
Edited by Jb RoxasLink to comment
Share on other sites
10 answers to this question
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.