XoXoX Posted August 14, 2014 Group: Members Topic Count: 8 Topics Per Day: 0.00 Content Count: 23 Reputation: 0 Joined: 01/03/13 Last Seen: September 8, 2023 Share Posted August 14, 2014 Anyone has a freebie npc that only gives the freebie per account, so one freebie per each account Quote Link to comment Share on other sites More sharing options...
Euphy Posted August 15, 2014 Group: Members Topic Count: 72 Topics Per Day: 0.02 Content Count: 2997 Reputation: 1132 Joined: 05/27/12 Last Seen: June 1, 2017 Share Posted August 15, 2014 Read: Basic_Scripting > account (#) variables; Getitem Quote Link to comment Share on other sites More sharing options...
Norm Hmuryj Posted August 15, 2014 Group: Members Topic Count: 11 Topics Per Day: 0.00 Content Count: 48 Reputation: 6 Joined: 07/03/13 Last Seen: June 28, 2024 Share Posted August 15, 2014 amatsu,116,146,3 script Seyra 90,{ set .@n$, "[Seyra]"; setarray .@rwd[0],2115,1,2357,1,2421,1,2524,1; // 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! Here are some free gifts"; mes "for newcomers:"; 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; } With last IP check. by Joseph Quote Link to comment Share on other sites More sharing options...
Question
XoXoX
Anyone has a freebie npc that only gives the freebie per account,
so one freebie per each account
Link to comment
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.