Jump to content
  • 1

VIP Buff Command when have item


skyroofficial

Question


  • Group:  Members
  • Topic Count:  7
  • Topics Per Day:  0.00
  • Content Count:  21
  • Reputation:   0
  • Joined:  04/16/17
  • Last Seen:  

So, hi again /shy

 

I would like to request an npc that looks like this

If the player have this item 32508 , they can use command @vipbuff  

and also, if the player have vip status (group_id 5 as default on SQL) , they also can use command @vvipbuff 

 

Thanks for the replies ! /slur/no1 

Link to comment
Share on other sites

3 answers to this question

Recommended Posts

  • 0

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

-	script	VIPBUFF	-1,{

OnInit:
		bindatcmd "vipbuffs", strnpcinfo(3) +"::OnBUFF";
		end;

OnBUFF:
if(countitem(32508) || (getgroupid() >= 5 )){
	specialeffect2 EF_HEAL2; percentheal 100,100;
	specialeffect2 EF_INCAGILITY; sc_start SC_INCREASEAGI,600000,10;
	specialeffect2 EF_BLESSING; sc_start SC_BLESSING,600000,10;
	specialeffect2 EF_ANGELUS; sc_start SC_ANGELUS,600000,10;
	specialeffect2 EF_SUFFRAGIUM; sc_start SC_SUFFRAGIUM,600000,3;
	specialeffect2 EF_IMPOSITIO; sc_start SC_IMPOSITIO,600000,5;
	specialeffect2 EF_GLORIA; sc_start SC_GLORIA,600000,5;
		}

end;
}

didnt tested

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  7
  • Topics Per Day:  0.00
  • Content Count:  21
  • Reputation:   0
  • Joined:  04/16/17
  • Last Seen:  

20 hours ago, Cyro said:

-	script	VIPBUFF	-1,{

OnInit:
		bindatcmd "vipbuffs", strnpcinfo(3) +"::OnBUFF";
		end;

OnBUFF:
if(countitem(32508) || (getgroupid() >= 5 )){
	specialeffect2 EF_HEAL2; percentheal 100,100;
	specialeffect2 EF_INCAGILITY; sc_start SC_INCREASEAGI,600000,10;
	specialeffect2 EF_BLESSING; sc_start SC_BLESSING,600000,10;
	specialeffect2 EF_ANGELUS; sc_start SC_ANGELUS,600000,10;
	specialeffect2 EF_SUFFRAGIUM; sc_start SC_SUFFRAGIUM,600000,3;
	specialeffect2 EF_IMPOSITIO; sc_start SC_IMPOSITIO,600000,5;
	specialeffect2 EF_GLORIA; sc_start SC_GLORIA,600000,5;
		}

end;
}

didnt tested

hi ! sorry for the late replies.

tested .. but it didnt work /sob 

Link to comment
Share on other sites

  • 0

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

Any errors? 

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...