Jump to content
  • 0

Doubt script pack guild


Beret

Question


  • Group:  Members
  • Topic Count:  60
  • Topics Per Day:  0.01
  • Content Count:  174
  • Reputation:   3
  • Joined:  06/19/12
  • Last Seen:  

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]

Link to comment
Share on other sites

11 answers to this question

Recommended Posts


  • Group:  Developer
  • Topic Count:  28
  • Topics Per Day:  0.01
  • Content Count:  547
  • Reputation:   270
  • Joined:  11/08/11
  • Last Seen:  

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

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  60
  • Topics Per Day:  0.01
  • Content Count:  174
  • Reputation:   3
  • Joined:  06/19/12
  • Last Seen:  

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
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  4
  • Topics Per Day:  0.00
  • Content Count:  81
  • Reputation:   14
  • Joined:  08/17/12
  • Last Seen:  

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

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  60
  • Topics Per Day:  0.01
  • Content Count:  174
  • Reputation:   3
  • Joined:  06/19/12
  • Last Seen:  

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]

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  4
  • Topics Per Day:  0.00
  • Content Count:  81
  • Reputation:   14
  • Joined:  08/17/12
  • Last Seen:  

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

 

vip pack ? edit it your self

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  60
  • Topics Per Day:  0.01
  • Content Count:  174
  • Reputation:   3
  • Joined:  06/19/12
  • Last Seen:  

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 ?

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  60
  • Topics Per Day:  0.01
  • Content Count:  174
  • Reputation:   3
  • Joined:  06/19/12
  • Last Seen:  

 

 

 

 

-    script    item    -1,{

 

 

Not to do something with an invisible npc ?

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  4
  • Topics Per Day:  0.00
  • Content Count:  81
  • Reputation:   14
  • Joined:  08/17/12
  • Last Seen:  

 

 

 

 

-    script    item    -1,{

 

 

Not to do something with an invisible npc ?

 

-.-

 

tho you want make it on item_db

 

OnInit:
disablenpc "itemnpc";
}
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  60
  • Topics Per Day:  0.01
  • Content Count:  174
  • Reputation:   3
  • Joined:  06/19/12
  • Last Seen:  

 

 

 

 

 

-    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
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  60
  • Topics Per Day:  0.01
  • Content Count:  174
  • Reputation:   3
  • Joined:  06/19/12
  • Last Seen:  

Bump.

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