find
set #CASHPOINTS, #CASHPOINTS + 50; // Change This item id to what ever you want . item id,amount
replace it withgetitem 7179,1;
*getitem <item id>,<amount>{,<account ID>};
*getitem "<item name>",<amount>{,<account ID>};
This command will give a specific amount of specified items to the target
character. If the character is not online, nothing will happen.
If <account ID> is not specified, items will be created in the invoking
character inventory instead.
Try this one..
when using a Custom Headger (ItemID 25234 ) get 10 Siver Coin in 1 minute & 100 Silver Coin in 1 hour,
when not to use custom headger only get a silver coin every minute.
- script minutepoints -1,{
//--Start of the Script
OnPCLoginEvent:
attachnpctimer ""+strcharinfo(0)+"";
initnpctimer;
end;
OnTimer30000:
//Check if Vending (normal or @at)
if(checkvending() >= 1 || checkchatting() == 1) {
dispbottom "The minute points event stopped because you were vending / chatting. Please relog if you wish to start again.";
stopnpctimer;
end;
}
//Check if Idle
getmapxy( .@map$, .@x, .@y, 0 );
if(@map$ == .@map$ && @x == .@x && @y == .@y) {
set @afk, @afk + 1;
}
//If move timer resets
else {
set @afk, 0;
}
set @map$, .@map$; set @x, .@x; set @y, .@y;
//Idle Check for 5 Minutes
if(@afk == 5) {
dispbottom "The minute points event stopped because you were idle for 5 minutes. Please relog if you wish to start again.";
stopnpctimer;
end;
}
end;
OnTimer60000:
set @minute, @minute + 1;
//Check for 1 Minute
dispbottom "Total Minute's Played: " + @minute;
if( @minute == 1 ) // 10 Minutes
{
if(getequipid(EQI_HEAD_TOP)==25234)
{
// Received 10 Silver COin
set .@point_amt, 10;
getitem 675,.@point_amt;
dispbottom "You received "+.@point_amt+" Silver Coin by staying ingame for 1 minute";
}
else{
// Received only 1 Silver Coin when 25234 is not Equip.
set .@point_amt, 1;
getitem 675,.@point_amt;
dispbottom "You received "+.@point_amt+" Silver Coin by staying ingame for 1 minute";
}
}
if( @minute == 60 ) {
// 1 Hour
set @minute,0;
set @consecutive_hour, @consecutive_hour + 1;
if(getequipid(EQI_HEAD_TOP)==25234)
{
set .@point_amt, 100;
getitem 675,.@point_amt;
}
else{
//set .@point_amt, 50;
//getitem 675,.@point_amt;
}
}
// Check for 1 hours consecutive
// Received More Rewards
if(@consecutive_hour == 2)
{
// Set Rewards Here..
set @consecutive_hour, 0;
}
stopnpctimer;
initnpctimer;
end;
}
Make a Random Color.