oh sorry i forgot to ask..how can i use this points that im receiving?
You can use it to purchase items. You can use this and set the currency value to #CASHPOINTS.
Oh ok btw sorry im noob on that OnMinute,, what should i do if i want to make it 1hour?
sir i got error..
Oh its ok now but the problem is
getitem .cards[ .random ], 1; <<<this one..how can i change it to i am the one who will give cards to have a points?
prontera,150,150,0 script Sample 100,{
OnMinute00:
setarray .cards[0], 4001,4002,4003,4004,4005,4006,4007; // <id>
setarray .amount[0], 10,5,2,6,7,8,9; // <points>
attachrid(getcharid(3,strcharinfo(0));
set .random, rand( getarraysize( .cards ) );
getitem .cards[ .random ], 1;
set #CASHPOINTS, #CASHPOINTS + @amount[ .random ];
end;
}
here is the error
Sorry 'bout that.
prontera,150,150,0 script Sample 100,{
OnMinute00:
setarray .cards[0], 4001,4002,4003,4004,4005,4006,4007; // <id>
setarray .amount[0], 10,5,2,6,7,8,9; // <points>
set @receiver$,strcharinfo(0);
attachrid(getcharid(3,@receiver$));
set .random, rand( getarraysize( .cards ) );
getitem .cards[ .random ], 1;
#CASHPOINTS = #CASHPOINTS + @amount[ .random ];
end;
}
Or this. Even i'm confused now @.@
prontera,150,150,0 script Sample 100,{
OnMinute00:
setarray .cards[0], 4001,4002,4003,4004,4005,4006,4007; // <id>
setarray .amount[0], 10,5,2,6,7,8,9; // <points>
addrid(0);
set .random, rand( getarraysize( .cards ) );
getitem .cards[ .random ], 1;
#CASHPOINTS = #CASHPOINTS + @amount[ .random ];
end;
}