GubA
Members-
Posts
24 -
Joined
-
Last visited
GubA's Achievements
-
Original Code Is OK But when edit like this Is error. How to fix this. Thank you.
-
-
How to edit FluxCP to write thai language. When i write thai it will alien language. Thank you for help
-
Help me.
-
i need only afk. dont need autotrade.
-
Thank you too much.
-
This my code Can i change SC_AUTOTRADE >>> SC_AUTOBERSERK because when i recall it will hide. Thank you for help.
-
Thank you to help.
-
What I want is 1. The player's level is checked first. 2. Set items for players to exchange for levels. example If a player is level 1, must bring 5 Red Potions and 10 Fly Wings in exchange for leveling up 1. When player level 2 must exchange 10 bottles of Awakening Potion 20 Jellopy for level up 1 etc. Thank you for help.
-
How to fix this map. i has download KRO JRO IRO but cant go this map. Thank for Help. Thank you.
-
Why some time [Error]: buildin_getitem: Nonexistant item 0 requested.
GubA replied to GubA's question in Scripting Support
all item have in db i has check -
Why some time [Error]: buildin_getitem: Nonexistant item 0 requested.
GubA posted a question in Scripting Support
prontera,155,177,5 script random 615,{ function Getcostume; if( countitem( .rare_ticket ) ) { mes "Rare Ticket"; .@r = .rate_chance_rare; // chance .@ticket = .rare_ticket ; } else if( countitem( .normal_ticket ) ) { mes "Normal Ticket"; .@r = .rate_chance_normal; // chance .@ticket = .normal_ticket; } else { mes "random"; close; } if( select( "go", "no" ) -1 ) close; delitem .@ticket, 1; if( .@r > rand( 1, 1000 ) ) { // chance 50% for rare ticket mes "random"; getitem Getcostume( "rare" ), 1; close; } else { mes "random"; getitem Getcostume( "normal" ), 1; close; } OnInit: .normal_ticket = 501; .rare_ticket = 502; .rate_chance_rare = 500; // chance to get a rare costume with rare ticket .rate_chance_normal = 100; // chance to get a rare costume with normal ticket // rare costume ID // size array must be < 128 // use the synthaxe .rare_IDX for adding news array // ------------------------------------------------ setarray .rare_ID0,5909; setarray .rare_ID1,5912; setarray .rare_ID2,5914; setarray .rare_ID3,5915; setarray .rare_ID4,5977; setarray .rare_ID5,5979; setarray .rare_ID6,5980; setarray .rare_ID7,15280; setarray .rare_ID8,15841; setarray .rare_ID9,15843; setarray .rare_ID10,15858; // normal costume ID // size array must be < 128 // use the synthaxe .normal_IDX for adding news array // ------------------------------------------------ setarray .normal_ID0,50001; setarray .normal_ID1,50001; setarray .normal_ID2,50001; setarray .normal_ID3,50001; setarray .normal_ID4,50001; setarray .normal_ID5,50001; setarray .normal_ID6,50001; setarray .normal_ID7,50001; // Don't touch // ----------- callsub L_size, "rare"; callsub L_size, "normal"; end; L_size: while( getd( "."+ getarg(0) +"_ID"+ .@i +"[0]" ) ) { setd ".size_"+ getarg(0) +""+ .@i, getarraysize( getd( "."+ getarg(0) +"_ID"+ .@i ) ); setd ".size_tot_"+ getarg(0), getd( ".size_tot_"+ getarg(0) ) + getarraysize( getd( "."+ getarg(0) +"_ID"+ .@i ) ); .@i++; } return; function Getcostume { .@r = rand( 1, getd( ".size_tot_"+ getarg(0) ) ); .@i = -1; while( .@r > .@tmp ) .@tmp = .@tmp + getd( ".size_"+ getarg(0) + .@i++ ); .@in = .@r - ( .@tmp - getd( ".size_"+ getarg(0) + .@i ) ) -1; return getd( "."+ getarg(0) +"_ID"+ .@i +"[ "+ .@in +" ]" ); } }