kangfredy Posted January 29, 2013 Group: Members Topic Count: 112 Topics Per Day: 0.02 Content Count: 388 Reputation: 4 Joined: 05/01/12 Last Seen: October 25, 2022 Share Posted January 29, 2013 guys can i request newbie reward? this is my schema for this script 1stly someone make new account. and then make new characther... in starting zone.. this is i need script for newbie giver (only one char in one ID)..... and this npc check in database login in sql......... if IP new ID = IP in login database not give reward and if IP new ID different give reward....... Quote Link to comment Share on other sites More sharing options...
Capuche Posted February 1, 2013 Group: Developer Topic Count: 10 Topics Per Day: 0.00 Content Count: 2407 Reputation: 616 Joined: 07/05/12 Last Seen: March 20 Share Posted February 1, 2013 (edited) Something like this ? prontera,155,159,5 script infamy 56,{ // Check if already log in // ----------------------- query_sql "SELECT `logincount` FROM `login` WHERE `account_id` = '"+ getcharid(3) +"'", .@logincount; if( .@logincount > 1 ) end; // Count account with the same ip xx.xx.xx.* // ----------------------------------------- sscanf( getcharip(), "%d.%d.%d.%d", .@a, .@b, .@c, .@d ); query_sql( "SELECT COUNT(`account_id`) FROM `login` WHERE `last_ip` LIKE '%"+ .@a +"."+ .@b +"."+ .@c +".%'", .@count ); if( .@count == 1 ) { dispbottom "Here a reward for newbie."; getitem 501, 1; } query_sql "UPDATE `login` SET `logincount` = '2' WHERE `account_id` = '"+ getcharid(3) +"'"; end; } Edited February 3, 2013 by Capuche 1 Quote Link to comment Share on other sites More sharing options...
kangfredy Posted February 2, 2013 Group: Members Topic Count: 112 Topics Per Day: 0.02 Content Count: 388 Reputation: 4 Joined: 05/01/12 Last Seen: October 25, 2022 Author Share Posted February 2, 2013 yes...tq guys....... Quote Link to comment Share on other sites More sharing options...
Question
kangfredy
guys can i request newbie reward?
this is my schema for this script
1stly
someone make new account.
and then
make new characther...
in starting zone..
this is i need script for newbie giver (only one char in one ID).....
and this npc check in database login in sql.........
if IP new ID = IP in login database
not give reward
and if IP new ID different
give reward.......
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.