Jump to content

Queen Freya

Members
  • Posts

    5
  • Joined

  • Last visited

Posts posted by Queen Freya

  1. On 9/15/2019 at 7:37 PM, Emistry said:

    Manage @alootid - @alootid2


    Introduction:

    Due to the limitation of alootid that can only loot up to 10 items by default. (can change at /src/).

    However players are always greedy, they want to loot almost everything, but not every items, so 10 slots can't fill their desires.

    So this custom manager are introduced.

    • It help player to setup different combination of alootid settings. (Different hunting monster/maps could switch to different settings)
    • player no longer worry what their previous alootid settings was.
    • player can switch/save any settings whenever they want.
    • alootid settings could be auto loaded when they join the game.

    * In short, just a macro to use to the alootid atcommand. To make it less confusing to player, disable the alootid and start using alootid2 instead.

    Usage:

    @alootid2 list
    @alootid2 <save/add/remove> <#> <item1> ... <item10>
    @alootid2 <load/clear/reset> <#>
    @alootid2 set <#> name <name>
    @alootid2 set <#> autoload <1/0>

    Example:

    chatbox: @alootid2 save 3 609 608 607
    Usage: @alootid2 save <3> - save successfully.
    chatbox: @alootid2 load 1
    Your autolootitem list has been reset.
    Autolooting item: 'Green_Herb'/'Green Herb' {511}
    Autolooting item: 'Apple'/'Apple' {512}
    Autolooting item: 'Banana'/'Banana' {513}
    Autolooting item: 'Grape'/'Grape' {514}
    Autolooting item: 'Carrot'/'Carrot' {515}
    Usage: @alootid2 load <2> - loaded successfully.
    chatbox: @alootid2 list
    <1>  - 501, 502, 503, 504, 505, 506, 507, 508, 509, 510
    <2>  - 511, 512, 513, 514, 515 (autoload upon login)
    <3>  - 609, 608, 607
    Usage: @alootid2 list - found 3 settings.

    Preview:

    jb0PRGD.jpg

    1jwgwG8.jpg

     


    • Submitter
    • Submitted
      09/15/2019
    • Category
    • Video
       
    • Content Author
      Emistry

     

    Want to ask question, where should i put this on src?

    CREATE TABLE IF NOT EXISTS `ero_alootid` (

  2. On 9/28/2022 at 10:25 AM, Syon said:

    I was having the same issue and here is how to solve it.

    Make sure the function at the end of the iteminfo.lua or iteminfo.lub is correct. Old iteminfo.lua files does not include the costume parameter in the main function.

    Here is the function in the latest iteminfo.lua from @llchrisll

     

    function main()
    	for ItemID, DESC in pairs(tbl) do
    		result, msg = AddItem(ItemID, DESC.unidentifiedDisplayName, DESC.unidentifiedResourceName, DESC.identifiedDisplayName, DESC.identifiedResourceName, DESC.slotCount, DESC.ClassNum)
    		if not result == true then
    			return false, msg
    		end
    		for k, v in pairs(DESC.unidentifiedDescriptionName) do
    			result, msg = AddItemUnidentifiedDesc(ItemID, v)
    			if not result == true then
    				return false, msg
    			end
    		end
    		for k, v in pairs(DESC.identifiedDescriptionName) do
    			result, msg = AddItemIdentifiedDesc(ItemID, v)
    			if not result == true then
    				return false, msg
    			end
    		end
    		if nil ~= DESC.EffectID then
    			result, msg = AddItemEffectInfo(ItemID, DESC.EffectID)
    		end
    		if not result == true then
    			return false, msg
    		end
    		if nil ~= DESC.costume then
    			result, msg = AddItemIsCostume(ItemID, DESC.costume)
    		end
    		if not result == true then
    			return false, msg
    		end
    	end
    	return true, "good"
    end
    
    function main_server()
    	for ItemID, DESC in pairs(tbl) do
    		result, msg = AddItem(ItemID, DESC.identifiedDisplayName, DESC.slotCount)
    		if not result == true then
    			return false, msg
    		end
    	end
    	return true, "good"
    end

    at which location should I add this?

     

×
×
  • Create New...