patr3k Posted August 10, 2012 Group: Members Topic Count: 104 Topics Per Day: 0.02 Content Count: 257 Reputation: 7 Joined: 03/12/12 Last Seen: May 31, 2014 Share Posted August 10, 2012 Can someone help me wtih this script? I want an account base not an ip base. 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; } Quote Link to comment Share on other sites More sharing options...
Emistry Posted August 10, 2012 Group: Forum Moderator Topic Count: 93 Topics Per Day: 0.02 Content Count: 10018 Reputation: 2369 Joined: 10/28/11 Last Seen: Sunday at 05:32 PM Share Posted August 10, 2012 it is account based also .... #NewbieGift Quote Link to comment Share on other sites More sharing options...
Euphy Posted August 10, 2012 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 10, 2012 Storing a permanent global list of IPs is a terrible idea, despite appearing otherwise, for reasons Annie stated here: http://www.eathena.ws/board/index.php?showtopic=181741&view=findpost&p=1478950 A separate SQL table must be used for things like this. As for a non-IP-based script, there are literally dozens floating around, please use the search button. Quote Link to comment Share on other sites More sharing options...
patr3k Posted August 10, 2012 Group: Members Topic Count: 104 Topics Per Day: 0.02 Content Count: 257 Reputation: 7 Joined: 03/12/12 Last Seen: May 31, 2014 Author Share Posted August 10, 2012 (edited) This script was edited by Kisuka for me. Can you guys edit this for me again please? Account base only not an ip base please please Edited August 10, 2012 by patr3k Quote Link to comment Share on other sites More sharing options...
Euphy Posted August 10, 2012 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 10, 2012 http://rathena.org/board/topic/63858-script-request/#entry102504 Quote Link to comment Share on other sites More sharing options...
Emistry Posted August 11, 2012 Group: Forum Moderator Topic Count: 93 Topics Per Day: 0.02 Content Count: 10018 Reputation: 2369 Joined: 10/28/11 Last Seen: Sunday at 05:32 PM Share Posted August 11, 2012 there are alot Newbie / Freebies script out there... either Account Based / Character Based...all are there already. search for it. * Ops...didnt saw Euphy's Link * Quote Link to comment Share on other sites More sharing options...
EvilPuncker Posted August 11, 2012 Group: Members Topic Count: 19 Topics Per Day: 0.00 Content Count: 713 Reputation: 71 Joined: 11/08/11 Last Seen: December 25, 2024 Share Posted August 11, 2012 Account base only not an ip base please please here it is: http://pastebin.com/raw.php?i=gzqdbkTV Quote Link to comment Share on other sites More sharing options...
Question
patr3k
Can someone help me wtih this script? I want an account base not an ip base.
Link to comment
Share on other sites
6 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.