Medusa Posted August 4, 2014 Group: Members Topic Count: 6 Topics Per Day: 0.00 Content Count: 9 Reputation: 0 Joined: 07/17/14 Last Seen: October 20, 2014 Share Posted August 4, 2014 I want to give some items to people with a specific account ID + at least 1 maxed char on it. It is supposed they get it upon first login afterwards im not good with scripting. I thought of something like if variable not = 1 and accountid < 123456 and at least 1 char max level getitem 12345 set variable 1 thank you Quote Link to comment Share on other sites More sharing options...
Ronald Posted August 5, 2014 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 August 5, 2014 Why not make it in a way that If Specific account ID (Correct) then NPC will give the Item? Quote Link to comment Share on other sites More sharing options...
Emistry Posted August 5, 2014 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 5, 2014 try this http://upaste.me/r/619830 Quote Link to comment Share on other sites More sharing options...
Skorm Posted August 5, 2014 Group: Forum Moderator Topic Count: 33 Topics Per Day: 0.01 Content Count: 1282 Reputation: 393 Joined: 02/03/12 Last Seen: April 11 Share Posted August 5, 2014 - script gain_reward -1,{ OnInit: .max_level = getbattleconf( "max_level" ); end; OnPCLoginEvent: if( !#gain_reward ){ query_sql( "SELECT `base_level` FROM `char` WHERE `account_id` = "+getcharid(3),.@lv ); .@size = getarraysize( .@lv ); for( .@i = 0; .@i < .@size; .@i++ ) if( .@lv[.@i] >= .max_level ) .@give_reward = 1; if( !.@give_reward ) gain_reward = 1; } end; } I think you forgot the part where it gives them the item. Quote Link to comment Share on other sites More sharing options...
Emistry Posted August 5, 2014 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 5, 2014 if( !.@give_reward ){ gain_reward = 1; getitem 512,1; getitem 512,2; getitem 512,3; } Quote Link to comment Share on other sites More sharing options...
Question
Medusa
I want to give some items to people with a specific account ID + at least 1 maxed char on it.
It is supposed they get it upon first login afterwards
im not good with scripting. I thought of something like
if variable not = 1 and accountid < 123456 and at least 1 char max level
getitem 12345
set variable 1
thank you
Link to comment
Share on other sites
4 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.