Jump to content

astralprojection

Members
  • Content Count

    333
  • Joined

  • Last visited

  • Days Won

    8

Reputation Activity

  1. Upvote
    astralprojection reacted to jaBote in Introducing rAthena to Hercules database converters.   
    It's a converter issue. Currently all `sc_data` gets pruned because of a safety measure, since rAthena SC IDs aren't the same as ours. Since carts are SCs, all merchants will have their carts released, much like Knights Peco Pecos or Hunters Falcons. Even people in Jail (SC_JAILED) get free, but there's currently no way to help with that. Think that, if we kept the current SC IDs, maybe you could permanently give SC_CASH_RECEIVEITEM (double exp rate for the user who has it) to someone that was jailed, for example (didn't check the numbers, this is just an exaggeration).
     
    Will discuss with the rest of the staff for a way to get the most SCs as possible saved.
  2. Upvote
    astralprojection reacted to kisuka in 2014 Halloween Event   
    Attached are the client additions / translations for the soon to be released official 2014 halloween event script.
     
    The lua files and questid2display.txt need to be merged with your own client files. In this archive they only contain the additions. They will not work if you just drop them into your client as it'll get rid of all the other content, as they weren't included.
     
    Server side content will be released into the repo once we get some item bonus figured out for the candies.
    2014 Halloween Event - Client Files.rar
  3. Upvote
    astralprojection reacted to tr0n_ in tr0n's Questboard [1.5.4]   
    Well it isn't designed to add new categories, that's why it seems messy. What categories did you add? Maybe we can look into it and I rework some of the script to make it easier to add new categories.
     
    At the end of the Line you add an item and the amount as you can see just add as many items or monsters as you want at the end like 501.50.502.100.503.150,... Same with monsters
    I won't add zeny requirement because you earn zeny and don't have to pay it. Maybe as a new category in the feature?
     
    For the new update 1.6.4:
    I am actually working on party support and it will be released soon. Be excited!
  4. Upvote
    astralprojection reacted to Neo-Mind in [Guide] How to use a secondary ItemInfo file   
    Introduction
    Well this idea came up when evilpunker asked about the possibility of having a patch which loads a second file which overrides the iteminfo file. But there is a better way to do that with lua itself.
     
    How to do it?
    The key idea is that the item information is added using the main function by the client. so in your custom file you just need to modify the main function to accept your items. Here is how it can be done.
     
    -- Load the original file. As you might have guessed you can also load your translated file here instead -- (just make sure the "tbl" array contains your item info) dofile("System/iteminfo.lub") -- Now as a simple example . I am simply going to change name of Red Potion to Crimson Potion. -- But you can add anything in the same way. Format is same as the original one, just -- the table name is different tbl_custom = { [501] = { unidentifiedDisplayName = "Crimson Potion", unidentifiedResourceName = "»¡°£Æ÷¼Ç", unidentifiedDescriptionName = { "A potion made from", "grinded Red Herbs that", "restores ^000088about 45 HP^000000.", "^ffffff_^000000", "Weight: ^7777777^000000" }, identifiedDisplayName = "Crimson Potion", identifiedResourceName = "»¡°£Æ÷¼Ç", identifiedDescriptionName = { "^000088HP Recovery Item^000000", "A potion made from", "grinded Red Herbs that", "restores ^000088about 45 HP^000000.", "^ffffff_^000000", "Weight: ^7777777^000000" }, slotCount = 0, ClassNum = 0 }, } -- Now for a helper function because i hate repetitions -- It adds items from curTable if it is not present in refTable function itemAdder(curTable, refTable) for ItemID,DESC in pairs(curTable) do if refTable == nil or refTable[ItemID] == nil then result, msg = AddItem(ItemID, DESC.unidentifiedDisplayName, DESC.unidentifiedResourceName, DESC.identifiedDisplayName, DESC.identifiedResourceName, DESC.slotCount, DESC.ClassNum) if not result then return false, msg end for k,v in pairs(DESC.unidentifiedDescriptionName) do result, msg = AddItemUnidentifiedDesc(ItemID, v) if not result then return false, msg end end for k,v in pairs(DESC.identifiedDescriptionName) do result, msg = AddItemIdentifiedDesc(ItemID, v) if not result then return false, msg end end end end return true, "good" end -- And the newly designed main function function main() result, msg = itemAdder(tbl_custom, nil) -- add custom items (including official overrides) if result then result, msg = itemAdder(tbl, tbl_custom) -- add non-overridden official items end return result, msg end  
    How is it useful?
    Think how item_db2.txt is useful for adding custom items in a server. Its the same strategy here.
     
    You can keep your official items  in a base file (or you can just use the official iteminfo.lub file if you want the korean names)
           and keep your custom items in a different file (make sure the first dofile function calls the base file).
     
    The above code is error free, so feel free to copy and add your items . Hope the topic was not too confusing 
    The lua code can be further expanded for overriding only parts of an official item. But i will leave that update for the future
     
    P.S. The client should be patched to accept your custom file not the base file.   
     
    Screenshot 

     
  5. Upvote
    astralprojection got a reaction from AnnieRuru in noitem plugin   
    i finally got it. wonderful!!!!!  will it support multiple items to disable? because i tried, map server wont load "stuck in loading mapflag file"     guild_vs1 mapflag noitem 4047, 4134, 4135, 4137, 4138, 4142, 4143, 4144, 4145, 4146, 4147, 4148, 4168, 4276, 4305, 4302, 4318, 4324
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.