Sorry bro can you help me i dont know why my npc didnt come out hope you can help me thanks bro
prontera,143,171,4 script Seyra 90,{
set .@n$, "[Seyra]";
setarray .@rwd[0],12210,2,14156,1,7229,2,14592,2; // Rewards: <item id>,<item amount>
query_sql ("SELECT `last_ip` FROM `login` WHERE `account_id`=" + getcharid(3) + "", .@lip$);
if ( getd("$" + .@lip$ + "_NG") > 0 || #NewbieGift > 0)
{
mes .@n$;
mes "I'm sorry, the rewards are exclusively for new players.";
close;
}
mes .@n$;
mes "Welcome to ^E066FFSin-RO World!^000000, "+ strcharinfo ( 0 ) +".I Am Seyra";
for ( set .@i, 0; .@i < getarraysize(.@rwd); set .@i, .@i + 2 )
mes .@rwd[.@i+1] + " x " + getitemname(.@rwd[.@i]);
close2;
set #NewbieGift, 1;
setd "$" + .@lip$ + "_NG", getd("$" + .@lip$ + "_NG") + 1;
for ( set .@i, 0; .@i < getarraysize(.@rwd); set .@i, .@i + 2 )
getitem .@rwd[.@i], .@rwd[.@i+1];
end;
OnInit:
waitingroom "Newbie Gift!",0;
end;
}