hi
I use this npc
izlude,136,146,4 script Gift NPC 865,{
query_sql ("SELECT `last_ip` FROM `login` WHERE `account_id`= '" + getcharid(3) + "'", .@lip$);
mes "[welcome]";
mes "will give u a gift once ";
if(!#Freebie && ( getd("$" + .@lip$ + "_ASD") == 0 )) {
mes "sure ?";
next;
switch(select("good bye")) {
case 1:
getitem 677,20;
getitem 674,2;
getitem 4043,4;
break;
}
set #Freebie, 1;
setd "$" + .@lip$ + "_ASD", getd("$" + .@lip$ + "_ASD") + 1;
close;
}
OnInit:
waitingroom "Gift",0;
end;
}
and its work great
but when I want to give player new Freebie, I can't because NPC save his IP
where can I rest IP so NPC give player new Freebie again ?
thank you