Jump to content
  • 0

Special Buffs


Bringer

Question


  • Group:  Members
  • Topic Count:  162
  • Topics Per Day:  0.04
  • Content Count:  746
  • Reputation:   47
  • Joined:  03/12/14
  • Last Seen:  

Hello im request for Special Commands Only Level 99 GM can use it and buffs all players Online

Buffs Will be Blessing and Increase Agi

Link to comment
Share on other sites

5 answers to this question

Recommended Posts

  • 1

  • Group:  Members
  • Topic Count:  49
  • Topics Per Day:  0.01
  • Content Count:  545
  • Reputation:   220
  • Joined:  03/01/13
  • Last Seen:  

Try this out. Let me know if it works.

-	script	kdsfksdjhfksdj	-1,{
OnInit:
	bindatcmd "buffall", strnpcinfo(0) +"::Onbuff",99,99;
	end;
Onbuff:
	addrid 0,0; // ripped almost entirely from Annieruru's script which ripped a little bit from Winz script
	skilleffect 34,0; sc_start SC_BLESSING,600000,10;
	skilleffect 29,0; sc_start SC_INCREASEAGI,600000,10;
	end;
}



Regards,
~Azura Skyy

Edited by Azura Skyy
  • Upvote 2
Link to comment
Share on other sites

  • 1

  • Group:  Forum Moderator
  • Topic Count:  33
  • Topics Per Day:  0.01
  • Content Count:  1268
  • Reputation:   382
  • Joined:  02/03/12
  • Last Seen:  

16 hours ago, Sryx said:

Didn't test it, tell me if it doesnt work.

Honestly in this situation just save yourself the trouble and use Addrid.

-	script	kdsfksdjhfksdj	-1,{
OnInit:
	bindatcmd "buffall", strnpcinfo(0) +"::Onbuff",99,99;
	end;
Onbuff:
	addrid 0,0; // ripped almost entirely from Annieruru's script which ripped a little bit from Winz script
	if ( !checkvending( strcharinfo(0) ) ) {
		skilleffect 34,0; sc_start SC_BLESSING,600000,10;
		skilleffect 29,0; sc_start SC_INCREASEAGI,600000,10;
	}
	end;
}

 

  • Upvote 2
Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  8
  • Topics Per Day:  0.00
  • Content Count:  1137
  • Reputation:   290
  • Joined:  04/29/13
  • Last Seen:  

just tested and its working 

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  162
  • Topics Per Day:  0.04
  • Content Count:  746
  • Reputation:   47
  • Joined:  03/12/14
  • Last Seen:  

On 4/18/2017 at 6:46 PM, Azura Skyy said:

Try this out. Let me know if it works.


-	script	kdsfksdjhfksdj	-1,{
OnInit:
	bindatcmd "buffall", strnpcinfo(0) +"::Onbuff",99,99;
	end;
Onbuff:
	addrid 0,0; // ripped almost entirely from Annieruru's script which ripped a little bit from Winz script
	skilleffect 34,0; sc_start SC_BLESSING,600000,10;
	skilleffect 29,0; sc_start SC_INCREASEAGI,600000,10;
	end;
}



Regards,
~Azura Skyy

can you add if the player vending no buff

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  15
  • Topics Per Day:  0.00
  • Content Count:  520
  • Reputation:   64
  • Joined:  11/19/11
  • Last Seen:  

3 hours ago, Bringer said:

can you add if the player vending no buff

-	script	kdsfksdjhfksdj	-1,{
OnInit:
	bindatcmd "buffall", strnpcinfo(0) +"::Onbuff",99,99;
	end;
Onbuff:
	//it also came from annieruru script
	freeloop(1);
	while ( getusers(1) > .@count ) {
		.@nb = query_sql("SELECT `account_id`,`name` FROM `char` WHERE `online` = 1 ORDER BY `account_id` LIMIT 128 OFFSET "+ .@count, .@aid,.@name$ );
		.@i = 0;
		while ( .@i < .@nb ) {
                          if ( !checkvending( .@name$[.@i] ) ){
                          skilleffect 34,0; sc_start SC_BLESSING,600000,10;
                          skilleffect 29,0; sc_start SC_INCREASEAGI,600000,10;
                          }
		.@i++;
		}
		.@count += 128;
	}
	freeloop(0);
	end;
}

 

Didn't test it, tell me if it doesnt work.

Edited by Sryx
refined some commands
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...