Jump to content

Question

Posted

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 

3 answers to this question

Recommended Posts

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

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

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