Jump to content
  • 0

Doubt script pack guild


Question

Posted

I am creating some pack guilds, I wonder how I can make the following announce.

 

 

[beret] opened pack guild [pack of 1 to 5 guild] and [item pack gain guild]

11 answers to this question

Recommended Posts

Posted (edited)

I do not quite get what you are trying to say. Could you explain a little bit more detailed?

 

Example:

 

 

 

setarray .@item[0],26001,26002,26003,26004,26005,26006,26007,26008,26009;

announce "["+strcharinfo(0)+"] opened "+getitemname(.Item[.@i])+" and obtained [item gain of some box]",0; 
Edited by Beret
Posted

Like this ?

 

function	script	CustomBox	{
	setarray .BoxItems[0],501,502,503;
	
	set .Random, getarraysize( .BoxItems );
	getitem .BoxItems[ rand( .Random ) ], 1;
	announce "["+strcharinfo(0)+"] has got "+getitemname(.BoxItems)+" from a Custom Box.",0;
	end;
}

 

 

add function into your item box or if you want to make npc just edit it

Posted

Like this ?

 

function	script	CustomBox	{
	setarray .BoxItems[0],501,502,503;
	
	set .Random, getarraysize( .BoxItems );
	getitem .BoxItems[ rand( .Random ) ], 1;
	announce "["+strcharinfo(0)+"] has got "+getitemname(.BoxItems)+" from a Custom Box.",0;
	end;
}

 

 

add function into your item box or if you want to make npc just edit it

 

Thanks for replying has no way do not function ?

 

And how do I show the name vip pack example

 

[beret] opened pack guild [pack of 1 to 5 guild] and [item pack gain guild]

Posted

on your item db , { callfunc "CustomBox"; }

 

vip pack ? edit it your self

 

Yes I understand about add callfunc the item, more wanted to know if you do not have to do without calling a function ?

Posted (edited)

 

 

 

 

 

-    script    item    -1,{

 

 

Not to do something with an invisible npc ?

 

-.-

 

tho you want make it on item_db

 

OnInit:
disablenpc "itemnpc";
}

 

 

I'll explain again is just an advertisement

Created 10 guild pack random items that equal a bluebox

I want to show an advertisement when open the package guild.

The player [player name] opened [package name of guild] and won [item package gain guild]
Edited by Beret

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