Jump to content
  • 0

how to put success rate for each of this?


Cisqua

Question


  • Group:  Members
  • Topic Count:  46
  • Topics Per Day:  0.01
  • Content Count:  131
  • Reputation:   1
  • Joined:  12/29/12
  • Last Seen:  

anyone can put an SUCCESS RATE each of item
 

4701 - 70%

4702 - 50%

4703 - 15%

4704 - 5%

4705 - 1%

//v1.4
prontera,156,156,4 script Enchant Expert 421,{


// ----------------------------------------------------------
// Character Variables
set .@geid, getequipid(EQI_HEAD_TOP);
set .@cout, countitem(.item);
set .@gin$, getitemname(.item);
set .@gerf, getequiprefinerycnt(1);
set .@crd1, getequipcardid(EQI_HEAD_TOP,0);
set .@crd2, getequipcardid(EQI_HEAD_TOP,1);
set .@crd3, getequipcardid(EQI_HEAD_TOP,2);
set .@crd4, getequipcardid(EQI_HEAD_TOP,3);
set .@itm, rand(4700,4705);
// ----------------------------------------------------------


mes .npc$;
mes "First and most importantly.";
mes "^ff5555Existing Refine Level of the Headgear";
mes "and Cards will be GONE.^000000";
mes "Do you still want to try an Enchant?";
if ( select ( "yes", "no" ) == 2 ) close;
 next;
mes .npc$;
mes "I can endow your glasses with mystical powers, but It'll cost yah ^FF3355"+.pric+" "+((.pric-1)?.@gin$+"s":.@gin$)+"^000000.";
 next;
if(!.@cout) {
mes .npc$;
mes "Sorry come back when you have ^FF3355"+.@gin$+"(s)^000000.";
close;
}


if(select("Yes:No")&2) {
mes .npc$; mes "Alright, thanks anyways!";
close;
}


if ( .@crd1 == 255 || .@crd1 == 254 ) {
mes .npc$;
mes "I can't enchant a signed equipment";
close;
}
if ( .@crd4 ) {
  mes .npc$;
mes "this armor has already enchanted!";
close;
}


if(.@cout<.pric) {
mes .npc$;
mes "I'm sorry you don't have enough ^FF3355"+.@gin$+"(s)^000000 to for me to endow your specticals, please come back later.";
close;
}


if(rand(0,((100/.perc)-1))) {
mes .npc$;
mes "I'm sorry but I've failed you!";
misceffect 155;
emotion e_sob,0;
delitem .item,.pric;
close;
}


mes .npc$;
if(compare(.uit$,""+.@geid)) {
delitem .item,.pric;
delitem2 .@geid, 1, 1, .@gerf, 0, .@crd1, .@crd2, .@crd3, .@crd4;
getitem2 .@geid, 1, 1, .@gerf, 0, .@crd1, .@crd2, .@crd3, .@itm;
misceffect .efet;
mes "All done!";
equip .@geid;
close;
}
mes "I'm sorry but you need to equipped a ^FF3355slotted quest upper-range headgear^000000 before we can continue.";
close;


//NPC Constants
OnInit:
//=-=-=-=-=-=-=Configuration=-=-=-=-=-=-=
set .npc$, "[^0000FF Enchant Expert ^000000]"; // NPC Name
set .pric, 1; // Price
set .efet, 154; // Effect Number
set .item, 7808; // God Hammer // Item Number
set .uit$, "5137"; // Item List
set .perc, rand(20,70); // Percent
//=-=-=-=-=-=-=-=-Skorm-=-=-=-=-=-=-=-=-=
}
Edited by Cisqua
Link to comment
Share on other sites

0 answers to this question

Recommended Posts

There have been no answers to this question yet

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...