CursorX Posted February 3, 2014 Group: Members Topic Count: 66 Topics Per Day: 0.02 Content Count: 168 Reputation: 0 Joined: 11/20/13 Last Seen: November 23, 2021 Share Posted February 3, 2014 hello every one... i wonder how to add script thats make check the IP address? cause somone making another account to have instant job all over.. http://rathena.org/board/pastebin/iei027agajlz/ and this freebies too http://rathena.org/board/pastebin/jx7a56w1cxa3/ Quote Link to comment Share on other sites More sharing options...
-SkittleNugget- Posted February 3, 2014 Group: Members Topic Count: 11 Topics Per Day: 0.00 Content Count: 318 Reputation: 54 Joined: 12/23/12 Last Seen: July 1, 2017 Share Posted February 3, 2014 You can use @accinfo Quote Link to comment Share on other sites More sharing options...
CursorX Posted February 3, 2014 Group: Members Topic Count: 66 Topics Per Day: 0.02 Content Count: 168 Reputation: 0 Joined: 11/20/13 Last Seen: November 23, 2021 Author Share Posted February 3, 2014 You can use @accinfo how? Quote Link to comment Share on other sites More sharing options...
-SkittleNugget- Posted February 3, 2014 Group: Members Topic Count: 11 Topics Per Day: 0.00 Content Count: 318 Reputation: 54 Joined: 12/23/12 Last Seen: July 1, 2017 Share Posted February 3, 2014 Oh, you want to attach to the scripts, best thing I can think of is to log all the IP's that use the script into mysql and then for the script to check IP's from mysql before giving items. Might give it a try if I have time later. Quote Link to comment Share on other sites More sharing options...
CursorX Posted February 3, 2014 Group: Members Topic Count: 66 Topics Per Day: 0.02 Content Count: 168 Reputation: 0 Joined: 11/20/13 Last Seen: November 23, 2021 Author Share Posted February 3, 2014 yes yes.. skit ^^ thx... ill be waiting if u have time.. thank you... Quote Link to comment Share on other sites More sharing options...
Missingno Posted February 5, 2014 Group: Members Topic Count: 7 Topics Per Day: 0.00 Content Count: 135 Reputation: 41 Joined: 02/05/14 Last Seen: December 23, 2022 Share Posted February 5, 2014 Create a table in your logs schema with this query: CREATE TABLE IF NOT EXISTS `freebielog` ( `id` int(11) unsigned NOT NULL auto_increment, `account` int(11) NOT NULL, `ip_address` varchar(100) NOT NULL, `timestamp` datetime NOT NULL, PRIMARY KEY (`id`) ) ENGINE=MyISAM; After giving freebies, add this code before that section of your script ends: // Log IP address query_logsql "INSERT INTO `freebielog` VALUES(NULL, '"+ getcharid(3) +"', '"+ getcharip(strcharinfo(0)) +"', NOW())"; To check if someone's already received freebies, add this code beforehand: // Search for IP address query_logsql "SELECT `ip_address` FROM `freebielog` WHERE `ip_address` = '"+ getcharip(strcharinfo(0)) +"'", .@char_ip$; // Check if IP address matches search query if (getcharip(strcharinfo(0)) == .@char_ip$) { // Error message or script mes "Sorry, you've already received freebies."; close; } You can replace the error message with your own, if you'd like. Quote Link to comment Share on other sites More sharing options...
CursorX Posted February 5, 2014 Group: Members Topic Count: 66 Topics Per Day: 0.02 Content Count: 168 Reputation: 0 Joined: 11/20/13 Last Seen: November 23, 2021 Author Share Posted February 5, 2014 what if.. they are in same PC Shop..? what about the other player wants some freebies.. but he can't get anything becoz the other player gets his freebies.. and that IP registered already Quote Link to comment Share on other sites More sharing options...
Missingno Posted February 5, 2014 Group: Members Topic Count: 7 Topics Per Day: 0.00 Content Count: 135 Reputation: 41 Joined: 02/05/14 Last Seen: December 23, 2022 Share Posted February 5, 2014 If they play behind the same router, they'll share their IP. If you're looking for a more "locked-down" solution, you may want to try using Harmony or a similar third-party program that allows for MAC address logging (in which case you'd need a slightly different method of retrieving and comparing computer identities). Even so, this could be bypassed in a matter of seconds by someone savvy enough to look around. You'd be better off logging hardware UIDs (as they are not so simply changed); if you figure that out, do share! ;> The best advice I can offer right now is to just not give anything worthwhile or transferable as a freebie, since such things are exploitable even with good third-party software. There's always the idea of centralised accounts with your website, but again you'd be relying on a third-party source as a comparison and still be vulnerable to exploitation. Quote Link to comment Share on other sites More sharing options...
Question
CursorX
hello every one... i wonder how to add script thats make check the IP address? cause somone making another account to have instant job all over..
http://rathena.org/board/pastebin/iei027agajlz/
and this freebies too
http://rathena.org/board/pastebin/jx7a56w1cxa3/
Link to comment
Share on other sites
7 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.