Yomigaeru Posted June 9, 2013 Group: Members Topic Count: 23 Topics Per Day: 0.00 Content Count: 89 Reputation: 5 Joined: 12/25/11 Last Seen: January 3, 2019 Share Posted June 9, 2013 Hi rA. I need a little help. I'm currently scripting a sharingan evolution system wherein if the sharingan user kills one of his friend in the PvP Room he will receive the mangekyou sharingan. Is it possible? I think it is with sql scripting. Basically, my script goes like this: OnPCKillEvent: if( strcharinfo(3) == "guild_vs2" && isequipped(sharingan_id) && <friend_variable> ) { getitem <mangekyou_id>,1; end; Please help me. Thanks in advance. Quote Link to comment Share on other sites More sharing options...
Emistry Posted June 9, 2013 Group: Forum Moderator Topic Count: 93 Topics Per Day: 0.02 Content Count: 10018 Reputation: 2369 Joined: 10/28/11 Last Seen: 11 hours ago Share Posted June 9, 2013 try - script Sample -1,{ OnInit: set .sharingan_id,5022; set .new_sharingan_id,5353; end; OnPCKillEvent: if( strcharinfo(3) == "guild_vs2" && isequipped( .sharingan_id ) ){ query_sql( "SELECT `friend_id` FROM `friend` WHERE `char_id` = '"+getcharid(0)+"'",.@char_id ); .@total = getarraysize( .@char_id ); if( .@total ) for( .@i = 0; .@i < .@total; .@i++ ) if( killedrid == .@char_id[.@i] ){ delitem .sharingan_id,1; getitem .new_sharingan_id,1; equip .new_sharingan_id; message strcharinfo(0),"Your sharingan...ugraded."; } } end; } Quote Link to comment Share on other sites More sharing options...
Question
Yomigaeru
Hi rA.
I need a little help.
I'm currently scripting a sharingan evolution system wherein if the sharingan user kills one of his friend in the PvP Room he will receive the mangekyou sharingan. Is it possible? I think it is with sql scripting.
Basically, my script goes like this:
OnPCKillEvent:
if( strcharinfo(3) == "guild_vs2" && isequipped(sharingan_id) && <friend_variable> ) {
getitem <mangekyou_id>,1;
end;
Please help me.
Thanks in advance.
Link to comment
Share on other sites
1 answer 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.