Jump to content
  • 0

i want an upgrade!


Jb Roxas

Question


  • Group:  Members
  • Topic Count:  40
  • Topics Per Day:  0.01
  • Content Count:  95
  • Reputation:   0
  • Joined:  01/28/12
  • Last Seen:  

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
Link to comment
Share on other sites

10 answers to this question

Recommended Posts


  • Group:  Forum Moderator
  • Topic Count:  93
  • Topics Per Day:  0.02
  • Content Count:  10015
  • Reputation:   2348
  • Joined:  10/28/11
  • Last Seen:  

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 by Emistry
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  40
  • Topics Per Day:  0.01
  • Content Count:  95
  • Reputation:   0
  • Joined:  01/28/12
  • Last Seen:  

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

Link to comment
Share on other sites


  • Group:  Forum Moderator
  • Topic Count:  93
  • Topics Per Day:  0.02
  • Content Count:  10015
  • Reputation:   2348
  • Joined:  10/28/11
  • Last Seen:  

ops....several variable name wrong...

find all

.OriID
.RareID

and change to

.@OriID
.@RareID

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  40
  • Topics Per Day:  0.01
  • Content Count:  95
  • Reputation:   0
  • Joined:  01/28/12
  • Last Seen:  

please rescript or test it

i try this RATE setarray .@Rates,99,99,99;

but still no winning

Link to comment
Share on other sites


  • Group:  Forum Moderator
  • Topic Count:  93
  • Topics Per Day:  0.02
  • Content Count:  10015
  • Reputation:   2348
  • Joined:  10/28/11
  • Last Seen:  

i just updated it a minute ago....refer the the post again....

it is just another variable name typo

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  40
  • Topics Per Day:  0.01
  • Content Count:  95
  • Reputation:   0
  • Joined:  01/28/12
  • Last Seen:  

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

Link to comment
Share on other sites


  • Group:  Forum Moderator
  • Topic Count:  93
  • Topics Per Day:  0.02
  • Content Count:  10015
  • Reputation:   2348
  • Joined:  10/28/11
  • Last Seen:  

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

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  40
  • Topics Per Day:  0.01
  • Content Count:  95
  • Reputation:   0
  • Joined:  01/28/12
  • Last Seen:  

thank you so much, i will try it later and post if there's an error.

Request Solved by Emistry

Big thanks.

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  142
  • Topics Per Day:  0.03
  • Content Count:  511
  • Reputation:   7
  • Joined:  02/15/12
  • Last Seen:  

Hey, what is this script all about? Can I ask? XD

Link to comment
Share on other sites


  • Group:  Forum Moderator
  • Topic Count:  93
  • Topics Per Day:  0.02
  • Content Count:  10015
  • Reputation:   2348
  • Joined:  10/28/11
  • Last Seen:  

upgrade 1 items into another items...

Link to comment
Share on other sites

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.

×
×
  • Create New...