Ziu Posted November 24, 2011 Group: Members Topic Count: 178 Topics Per Day: 0.04 Content Count: 909 Reputation: 247 Joined: 11/08/11 Last Seen: March 28 Share Posted November 24, 2011 @ 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]].. is possible to add new type item......that can do this action.. thanks... Quote Link to comment Share on other sites More sharing options...
gfxmrmark Posted November 24, 2011 Group: Members Topic Count: 16 Topics Per Day: 0.00 Content Count: 148 Reputation: 8 Joined: 11/20/11 Last Seen: September 12, 2013 Share Posted November 24, 2011 its possible Quote Link to comment Share on other sites More sharing options...
Judas Posted November 24, 2011 Group: Members Topic Count: 26 Topics Per Day: 0.01 Content Count: 2244 Reputation: 182 Joined: 11/19/11 Last Seen: September 15, 2024 Share Posted November 24, 2011 isn't this like megaphone? Quote Link to comment Share on other sites More sharing options...
Ziu Posted November 24, 2011 Group: Members Topic Count: 178 Topics Per Day: 0.04 Content Count: 909 Reputation: 247 Joined: 11/08/11 Last Seen: March 28 Author Share Posted November 24, 2011 isn't this like megaphone? It has nothing to see ... Quote Link to comment Share on other sites More sharing options...
Emistry Posted November 25, 2011 Group: Forum Moderator Topic Count: 93 Topics Per Day: 0.02 Content Count: 10018 Reputation: 2369 Joined: 10/28/11 Last Seen: 19 hours ago Share Posted November 25, 2011 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. Quote Link to comment Share on other sites More sharing options...
darkmeistersp Posted November 25, 2011 Group: Members Topic Count: 4 Topics Per Day: 0.00 Content Count: 70 Reputation: 12 Joined: 11/18/11 Last Seen: November 3, 2015 Share Posted November 25, 2011 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; },{},{} Quote Link to comment Share on other sites More sharing options...
Toshiro Posted November 25, 2011 Group: Members Topic Count: 2 Topics Per Day: 0.00 Content Count: 106 Reputation: 29 Joined: 11/08/11 Last Seen: Wednesday at 05:06 PM Share Posted November 25, 2011 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. Quote Link to comment Share on other sites More sharing options...
Ziu Posted November 25, 2011 Group: Members Topic Count: 178 Topics Per Day: 0.04 Content Count: 909 Reputation: 247 Joined: 11/08/11 Last Seen: March 28 Author Share Posted November 25, 2011 @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... Quote Link to comment Share on other sites More sharing options...
llchrisll Posted November 25, 2011 Group: Members Topic Count: 12 Topics Per Day: 0.00 Content Count: 626 Reputation: 189 Joined: 11/19/11 Last Seen: March 25 Share Posted November 25, 2011 (edited) @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 November 25, 2011 by llchrisll Quote Link to comment Share on other sites More sharing options...
Ziu Posted November 26, 2011 Group: Members Topic Count: 178 Topics Per Day: 0.04 Content Count: 909 Reputation: 247 Joined: 11/08/11 Last Seen: March 28 Author Share Posted November 26, 2011 @llchrisll Thanks but I already knew it, my request is another matter.... Quote Link to comment Share on other sites More sharing options...
llchrisll Posted December 2, 2011 Group: Members Topic Count: 12 Topics Per Day: 0.00 Content Count: 626 Reputation: 189 Joined: 11/19/11 Last Seen: March 25 Share Posted December 2, 2011 @llchrisll Thanks but I already knew it, my request is another matter.... .... 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 Quote Link to comment Share on other sites More sharing options...
Ziu Posted January 11, 2012 Group: Members Topic Count: 178 Topics Per Day: 0.04 Content Count: 909 Reputation: 247 Joined: 11/08/11 Last Seen: March 28 Author Share Posted January 11, 2012 is possible¿¿¿???? Quote Link to comment Share on other sites More sharing options...
Daredevil Posted January 11, 2012 Group: Members Topic Count: 2 Topics Per Day: 0.00 Content Count: 48 Reputation: 7 Joined: 11/15/11 Last Seen: April 6, 2012 Share Posted January 11, 2012 (edited) 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 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 January 11, 2012 by Daredevil Quote Link to comment Share on other sites More sharing options...
Question
Ziu
@ 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]]..
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
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.