balanar12321 Posted October 2, 2020 Group: Members Topic Count: 13 Topics Per Day: 0.00 Content Count: 20 Reputation: 0 Joined: 04/11/15 Last Seen: August 13, 2021 Share Posted October 2, 2020 if( query_sql( "SELECT `account_id` FROM `char` WHERE `guild_id`='"+$koegid+"' AND `online`= 1 ",.@AID ) ) for( set .@i,0; .@i < getarraysize( .@AID ); set .@i,.@i + 1 ){ getitem 600,1,.@AID[.@i]; getitem 601,1,.@AID[.@i]; getitem 602,1,.@AID[.@i]; } end; CAN SOMEONE make this IP base reward, 1 reward per 1 IP.. thanks Quote Link to comment Share on other sites More sharing options...
0 Ronald Posted October 3, 2020 Group: Members Topic Count: 22 Topics Per Day: 0.01 Content Count: 250 Reputation: 21 Joined: 06/04/14 Last Seen: November 17, 2024 Share Posted October 3, 2020 This might help. Quote Link to comment Share on other sites More sharing options...
0 Neffletics Posted October 3, 2020 Group: Members Topic Count: 3 Topics Per Day: 0.00 Content Count: 149 Reputation: 24 Joined: 02/11/16 Last Seen: May 16, 2023 Share Posted October 3, 2020 (edited) if(strcharinfo(2) != $koegid) end; // if the character is not from the guild goto GetReward; break; GetReward: query_sql("SELECT last_ip FROM `login` WHERE account_id = "+getcharid(3)+"", .@IP$); query_sql("SELECT account_id FROM `login` WHERE last_ip = '"+.@IP$+"'", .@AID); if(getarraysize(.@AID) > 1) end; // If more than 1 account_id shares the same IP getitem 600,1; end; Just make them talk to an NPC with this function. This is the simplest way to do it. I hope it helps. ~ Edited October 3, 2020 by Neffletics Quote Link to comment Share on other sites More sharing options...
Question
balanar12321
if( query_sql( "SELECT `account_id` FROM `char` WHERE `guild_id`='"+$koegid+"' AND `online`= 1 ",.@AID ) )
for( set .@i,0; .@i < getarraysize( .@AID ); set .@i,.@i + 1 ){
getitem 600,1,.@AID[.@i];
getitem 601,1,.@AID[.@i];
getitem 602,1,.@AID[.@i];
}
end;
CAN SOMEONE make this IP base reward, 1 reward per 1 IP.. thanks
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.