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

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
Sign in to follow this  

×
×
  • Create New...

Important Information

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