hello its it possible make a lotti girl npc paid
if player want play the lottery need pay 1 ticket
and player will give a random reward with % like gold 90% TCG 50%
Hi, please give a try easy to read.
prontera,157,180,4 script Lotti Girl 4_F_KAFRA7,{
function LinkItem_;
.@name$ = strcharinfo(0);
.@rand = rand(.chances);
.@i = 0;
if( countitem(.itm_p) < .itm_a ){
mes .n$;
mes "You don't have any";
mes .itm_a+" x "+.itm_n$;
mes "in your inventory.";
mes " ";
mes "Please come back to me if you have it already.";
close;
}
mes .n$;
mes rand(2) ? ""+callfunc("F_Hi")+" ^0000FFI'm Lotti Girl^000000, of Arlandria Rune-Midgard City."