• 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!

Lua how can i call weight?

m0wlf

New Member
Joined
Oct 26, 2010
Messages
1
Reaction score
0
i got this

Code:
 gmp_id = 7590 -- Item a ser vendido
        backpackgmp_id = 9774 -- Backpack
		custogmp_id = 2400 -- Valor
		cargasgmp_id = 20 -- Cargas
		
local name = getItemNameById(gmp_id)

----- End Config -----
function onUse(cid, item, fromPosition, itemEx, toPosition)
	
        if doPlayerRemoveMoney(cid, custogmp_id) == TRUE then
                local bag = doPlayerAddItem(cid, backpackgmp_id, 1)
                        doSendAnimatedText(fromPosition, "Purchased", TEXTCOLOR_YELLOW)
                        doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "You have purchased a backpack of ".. name .."s for ".. custogmp_id .." gold.")
						for i=1,20 do
                        doAddContainerItem(bag, gmp_id, cargasgmp_id)
                end
                else
                        doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_ORANGE, "You need ".. custogmp_id .." gold coins for a backpack of ".. name .."s.")
                end
        return FALSE
end


its an action to sell bps of runes and stuff
the problem is when u try to buy it and no have capasity it only remove money and u dont get the back pack...
so i want to know how to call weight from player

srry for my english D:

edit--
jojoo srry is not weight from a player is capacity from a player

edit-- well never mind i found the solution in other post
my bad for not searching first srry
 
Last edited:
Call weight : 02+98348473

2K2lg.jpg
 
Back
Top