Jump to content
  • 0

i want an upgrade!


Question

Posted (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 by Jb Roxas

10 answers to this question

Recommended Posts

Posted

set an announce pls if they got RareValkID

Thank you so much.

error.jpg

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;
}

Posted

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

Posted

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;
 }

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...