• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!

Vial of milk can't find the id

carre

Advanced OT User
Joined
Apr 23, 2013
Messages
881
Solutions
1
Reaction score
160
Location
Sweden
Hi

I trying to add a vial of milk on chest reward map editor.

but can't find the id of vial of milk.
can't find this on my items.xml
 

Attachments

You use vial and then instead of item amount you pick the fluid. If i remember correctly.

Or its like this,
/i vial, 1, 5 (5 being the fluid)

Maybe its the same in RME where you click properties on the vial.
 
You use vial and then instead of item amount you pick the fluid. If i remember correctly.

Or its like this,
/i vial, 1, 5 (5 being the fluid)

Maybe its the same in RME where you click properties on the vial.
When I did use /i vial, 6 and got vial of milk.
How can I add vial, 6 on my map editor?
 
then you will need to make this quest a separated action script in Lua, because it is not possible in RME
I make separated action script in lua everthing works fines, but I still don't get the vial of milk,
the vial of milk id is 2006,6,
Screenshot_2.png
Code:
  local config = {
        storage = 4512,
        key_id = 1987 -- Key ID

}

function onUse(cid, item, fromPosition, itemEx, toPosition)
        if getPlayerStorageValue(cid, config.storage) == -1 then
                setPlayerStorageValue(cid, config.storage, 1)
                doPlayerSendTextMessage(cid,MESSAGE_INFO_DESCR, "You have found a bag.")
                key = doPlayerAddItem(cid, config.key_id, 1)
                doAddContainerItem(key, 2148, 50)
                doAddContainerItem(key, 2642, 1)
                doAddContainerItem(key, 2563, 1)
                doAddContainerItem(key, 2006,6, 1)
        else
                doPlayerSendTextMessage(cid,MESSAGE_INFO_DESCR, "The chest is empty.")
        end
        return true
end
 
I make separated action script in lua everthing works fines, but I still don't get the vial of milk,
the vial of milk id is 2006,6,
View attachment 42375
Code:
  local config = {
        storage = 4512,
        key_id = 1987 -- Key ID

}

function onUse(cid, item, fromPosition, itemEx, toPosition)
        if getPlayerStorageValue(cid, config.storage) == -1 then
                setPlayerStorageValue(cid, config.storage, 1)
                doPlayerSendTextMessage(cid,MESSAGE_INFO_DESCR, "You have found a bag.")
                key = doPlayerAddItem(cid, config.key_id, 1)
                doAddContainerItem(key, 2148, 50)
                doAddContainerItem(key, 2642, 1)
                doAddContainerItem(key, 2563, 1)
                doAddContainerItem(key, 2006,6, 1)
        else
                doPlayerSendTextMessage(cid,MESSAGE_INFO_DESCR, "The chest is empty.")
        end
        return true
end
check second post:
 
check second post:
Code:
  local config = {
        storage = 4512,
        key_id = 1987 -- Key ID

}

function onUse(cid, item, fromPosition, itemEx, toPosition)
        if getPlayerStorageValue(cid, config.storage) == -1 then
                setPlayerStorageValue(cid, config.storage, 1)
                doPlayerSendTextMessage(cid,MESSAGE_INFO_DESCR, "You have found a bag.")
                key = doPlayerAddItem(cid, config.key_id, 1)
                doAddContainerItem(key, 2148, 50)
                doAddContainerItem(key, 2642, 1)
                doAddContainerItem(key, 2563, 1)
                doAddContainerItem(key, 2006, 6)
        else
                doPlayerSendTextMessage(cid,MESSAGE_INFO_DESCR, "The chest is empty.")
        end
        return true
end

it work thank you very so much (;
 
Back
Top