Jump to content

Question

5 answers to this question

Recommended Posts

  • 1
Posted (edited)

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
  • 1
Posted
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
  • 0
Posted
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

  • 0
Posted (edited)
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

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.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...