Yugosh
-
Content Count
7 -
Joined
-
Last visited
Posts posted by Yugosh
-
-
Here, give this a try:
prontera,147,174,5 script Odd Fellow::randomstuff 1_M_WIZARD,{ /*----------------------------------------------------- Script -----------------------------------------------------*/ mes .npc_name$; mes "Hello there! For "+ .coin_amount +" "+ getitemname(.coin_id) +", I'll give you a random item!"; next; mes .npc_name$; if (countitem(.coin_id) < .coin_amount) { mes "Come back when you have "+ .coin_amount +" "+ getitemname(.coin_id) +"!"; close; } mes "Would you like to give it a try?"; next; if (select("Sure, why not!:No, thanks") == 2) { mes .npc_name$; mes "Okay, come back if you change your mind!"; close; } do { .@prize_id = rand(.prize_min_id, .prize_max_id); } while (getitemname(.@prize_id) == "null"); mes .npc_name$; mes "Here you go! You got "+ .prize_amount +" "+ getitemname(.@prize_id) +"!"; delitem .coin_id, .coin_amount; getitem .@prize_id, .prize_amount; close; /*----------------------------------------------------- Configuration -----------------------------------------------------*/ OnInit: .npc_name$ = "[Odd Fellow]"; .coin_id = Poring_Coin; // Coin ID .coin_amount = 1; // Count amount required .prize_min_id = 501; // Prize minimum ID .prize_max_id = 30000; // Prize maximum ID .prize_amount = 1; // Prize amount rewarded end;}
Work Perfectly so how to set the custom prize?
in here have min and max
so ho how to change this prize apple chance 10%?
thanks master
-
prontera,150,150,0 script Sample 100,{ if ( !countitem( 7539 ) ) { mes "You need 1 " +getitemname( 7539 )+ " in order to talk to me"; close; } if ( select( "Here have my " +getitemname( 7539 )+ ":Nevermind" ) - 1 ) close; .@r = rand(501, 700); if ( getitemname( .@r ) != "null" ) { delitem 7539, 1; getitem .@r, 1; } close;}
Might be a good idea to enclose that set for .@r in a do..while loop; if the item name does end up being "null", the user's item is taken and doesn't get anything lol.
do { .@r = rand(501, 700);} while (getitemname(.@r) != "null");
how about the chance?
rare item 5% like that?
EDIT :
not work perfectly
-
a simple npc ex.
you give me Poring coin and the machine will random and give you anything
ex reward :
Apple , blue pot , red pot , or anything.
thanks for help master. +1
-
{ Id: 7415 AegisName: "Stone_Of_Summons" Name: "Summoning Stone" Type: 3 Buy: 2 Weight: 10},
for this code how do we put the code like Summon / Spawn 1 1904 (Bomb Poring).
thanks master
-
master can i req script / npc player online?
ex. player online 1 or 2 hours get this item.
but player online more than 6 hour get this item.
a different reward thanks
sory my bad english
-
yeah same with me i need the script
[ Ask/Help ] NPC Pvp Warper.
in Script Support
Posted · Edited by Yugosh
i need to change pvp champion room only for job Champion and Sura Only..
help me edit it
im try use == , && , ||
omg thanks
EDIT :
i found this in my server
[Warning]: pc_bonus: unknown type 0 250 !
some body know?