Beret Posted February 26, 2013 Posted February 26, 2013 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] Quote
Lemongrass Posted February 27, 2013 Posted February 27, 2013 I do not quite get what you are trying to say. Could you explain a little bit more detailed? Quote
Beret Posted February 27, 2013 Author Posted February 27, 2013 (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 February 27, 2013 by Beret Quote
Yahiko Posted February 28, 2013 Posted February 28, 2013 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 Quote
Beret Posted February 28, 2013 Author Posted February 28, 2013 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] Quote
Yahiko Posted February 28, 2013 Posted February 28, 2013 on your item db , { callfunc "CustomBox"; } vip pack ? edit it your self Quote
Beret Posted February 28, 2013 Author Posted February 28, 2013 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 ? Quote
Yahiko Posted February 28, 2013 Posted February 28, 2013 i don't know then , ask http://rathena.org/board/user/477-goddameit/ Quote
Beret Posted February 28, 2013 Author Posted February 28, 2013 i don't know then , ask http://rathena.org/board/user/477-goddameit/ - script item -1,{ Not to do something with an invisible npc ? Quote
Yahiko Posted February 28, 2013 Posted February 28, 2013 i don't know then , ask http://rathena.org/board/user/477-goddameit/ - script item -1,{ Not to do something with an invisible npc ? -.- tho you want make it on item_db OnInit: disablenpc "itemnpc"; } Quote
Beret Posted March 1, 2013 Author Posted March 1, 2013 (edited) i don't know then , ask http://rathena.org/board/user/477-goddameit/ - 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 March 1, 2013 by Beret Quote
Question
Beret
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
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.