Jump to content
  • 0

[Request] announcement Scroll


Ziu

Question


  • Group:  Members
  • Topic Count:  177
  • Topics Per Day:  0.04
  • Content Count:  909
  • Reputation:   247
  • Joined:  11/08/11
  • Last Seen:  

@ official kRO mains servers... when you open the scroll announces it to everyone....

[Name user].....[Name Scroll/[read idnum2itemdisplaynametable.txt]]............ [name drop item [read idnum2itemdisplaynametable.txt]]..

screen204.jpg

is possible to add new type item......that can do this action.. thanks...

Link to comment
Share on other sites

12 answers to this question

Recommended Posts


  • Group:  Members
  • Topic Count:  16
  • Topics Per Day:  0.00
  • Content Count:  148
  • Reputation:   8
  • Joined:  11/20/11
  • Last Seen:  

its possible :o

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  26
  • Topics Per Day:  0.01
  • Content Count:  2244
  • Reputation:   182
  • Joined:  11/19/11
  • Last Seen:  

isn't this like megaphone?

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  177
  • Topics Per Day:  0.04
  • Content Count:  909
  • Reputation:   247
  • Joined:  11/08/11
  • Last Seen:  

isn't this like megaphone?

It has nothing to see ...

Link to comment
Share on other sites


  • Group:  Forum Moderator
  • Topic Count:  93
  • Topics Per Day:  0.02
  • Content Count:  10015
  • Reputation:   2348
  • Joined:  10/28/11
  • Last Seen:  

maybe you can do it in this way ( if i was right with what you want )

create a custom scroll

add in the Announce Command with specific message

then get items.

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  4
  • Topics Per Day:  0.00
  • Content Count:  70
  • Reputation:   12
  • Joined:  11/18/11
  • Last Seen:  

maybe you can do it in this way ( if i was right with what you want )

create a custom scroll

add in the Announce Command with specific message

then get items.

As Emistry said, it should be some something like that:

21000,Custom_Scroll,Custom Scroll,2,0,,10,,,,,0xFFFFFFFF,7,2,,,,,,{ getitem ITEM_ID,1; announce ""+strcharinfo(0)+" used [Custom Scroll] and obtained a [iTEM_NAME]",bc_blue|bc_all; end; },{},{}

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  2
  • Topics Per Day:  0.00
  • Content Count:  106
  • Reputation:   28
  • Joined:  11/08/11
  • Last Seen:  

If the item name is really read from the idnum2itemnametable.txt as Ziu posted in his first post (and it looks like that because kRO is not really using English names for items, so he's using his translated data), then there must be a new packet for this kind of broadcast.

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  177
  • Topics Per Day:  0.04
  • Content Count:  909
  • Reputation:   247
  • Joined:  11/08/11
  • Last Seen:  

@darkmeistersp...

12804,Scroll_Crew,Scroll Crew,18,20,10,10,,,,,0xFFFFFFFF,7,2,,,,,,{ getitem groupranditem(IG_Crew_Scroll),1; },{},{}

IG_Crew_scroll:

Drooping Neko Crew,

Ring of Flame Lord,

Safe to 11 Weapon Certificate,

Safe to 11 Armor Certificate,

Safe to 9 Weapon Certificate,

Safe to 9 Body Armor certificate,

Enchanted Letter Introduction,

etc...

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  12
  • Topics Per Day:  0.00
  • Content Count:  626
  • Reputation:   188
  • Joined:  11/19/11
  • Last Seen:  

@darkmeistersp...

12804,Scroll_Crew,Scroll Crew,18,20,10,10,,,,,0xFFFFFFFF,7,2,,,,,,{ getitem groupranditem(IG_Crew_Scroll),1; },{},{}

IG_Crew_scroll:

Drooping Neko Crew,

Ring of Flame Lord,

Safe to 11 Weapon Certificate,

Safe to 11 Armor Certificate,

Safe to 9 Weapon Certificate,

Safe to 9 Body Armor certificate,

Enchanted Letter Introduction,

etc...

As far as I know you need to add an custom group (boxes, etc) to use this o.o.

In the src folder its about the "MAX_ITEMGROUP" which is in the src/map/itemdb.h.

The other required entries are in db/const, just search for "IG_" and go to the latest entry.

Then add that "IG_Crew_Scroll" or any other name you like and add the "Group ID" afterwards, but so that it isn't higher than the "MAX_ITEMGROUP".

Next step would be adding either a extra file to the db/item_groub_db.txt:

Current Entries:

import: db/item_bluebox.txt
import: db/item_violetbox.txt
import: db/item_cardalbum.txt
import: db/item_cookie_bag.txt
import: db/item_findingore.txt
import: db/item_giftbox.txt
import: db/item_scroll.txt
import: db/item_misc.txt

and add "import: db/item_crew.txt" as example.

Then you create that item_crew.txt in your db/ folder and add the items with this format.

GroupID,ItemID,Rate

2nd option would be using an already available file and add there your new groupID^^.

Example:

db/const.txt
IG_Crew<TAB>50

Then I have created like mentioned above the file "item_crew.txt" and put it into the db/ folder.

Also I added an line into the db/item_group_db.txt: "import: db/item_crew.txt"

db/item_crew.txt
// Structure of Database:
// GroupID,ItemID,Rate
50,<ITEM_ID>,20 // 20% to gain the item <ITEM_ID>

Then like Ziu posted, add an item and add in the 1st {} : getitem groupranditem(IG_Crew),1; // In my example

That's as far as I remember, if that has changed, please correct me o.o.

Just saw that the Wiki is missing such a guide q.q.

Regards,

Chris

Edited by llchrisll
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  177
  • Topics Per Day:  0.04
  • Content Count:  909
  • Reputation:   247
  • Joined:  11/08/11
  • Last Seen:  

@llchrisll

Thanks but I already knew it, my request is another matter.... :)

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  12
  • Topics Per Day:  0.00
  • Content Count:  626
  • Reputation:   188
  • Joined:  11/19/11
  • Last Seen:  

@llchrisll

Thanks but I already knew it, my request is another matter.... ani_no1.gif

.... I just re-read your 1st post, seems like I skipped this line somehow:

is possible to add new type item......that can do this action.. thanks...

Sry about an guide which wasn't needed at all o.o.

@Topic I think that would require SRC Modification ^^, since it's a new item type or not?

Regards,

Chris

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  177
  • Topics Per Day:  0.04
  • Content Count:  909
  • Reputation:   247
  • Joined:  11/08/11
  • Last Seen:  

is possible¿¿¿????

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  2
  • Topics Per Day:  0.00
  • Content Count:  48
  • Reputation:   7
  • Joined:  11/15/11
  • Last Seen:  

you need source modification to read item_displayname_db.txt and then make a new script command for getitemdisplayname ?(Right :) ?)

you must convert idnum2itemdisplaynametable to item_displayname_db.txt

ex : 501#Red_Potion# to 501,Red Potion (just remove # all with ctrl+h)

i want to helps but i can't imagine it /swt

eehh edit

ziu, the main of this thread is a scroll gives some items, then the scroll announce to all players, language for the name of the item based on idnum2itemdisplaynametable.txt, if english language just use script command "getitemname(item id)"

Edited by Daredevil
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...