Jump to content
  • 0
Sign in to follow this  
MikZ

Freebies NPC Points via last_mac

Question

Good day Herc. scripters,

 

wanted to know, if does this script read last_mac or last_ip?


I only changed last_ip to last_mac, does that work? what else do i need to change?

Please help. thanks!

poring_w01,100,123,6	script	SoloPack Points	TW_TOWER,{

set .@n$, "[Seyra]";
query_sql ("SELECT `last_mac` 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! "+strcharinfo(0)+"";
mes "Here are your points to trade in SOLO PACK SHOP"; 
close2;
set #NewbieGift, 1;
setd "$" + .@lip$ + "_NG", getd("$" + .@lip$ + "_NG") + 1;
#FREEBIESSET += 1;
#FREEBIESWING += 1;
#FREEBIESJARD += 2;
end;

OnInit:
waitingroom "Solo Pack Points!",0;
end;

}
Edited by MikZ

Share this post


Link to post
Share on other sites

2 answers to this question

Recommended Posts

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
Sign in to follow this  

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.