sabrina9292
New Member
- Joined
- Dec 27, 2009
- Messages
- 1
- Reaction score
- 0
well ...
First, sorry for my english (To use Google translator; P)
I created a script and looking for value more my server, so I use for the broom ...
My broom is used to clear the map and help the players financially
However ... So you can scan the item, it must separate each item, and I would like to add the ability to scan the items in the table if they are within a backpac ...
If the backpack has five jars, add the value of each bottle with the value of the backpack .... 10 If you have weak, would add an amount of money but the backpack 10 bottles .... (That is, the value that will add to the player, will vary)
And inside the backpack, that does not contain any item listed in the table, send a message disendo should get that item from the backpack to be able to excute the action (to prevent loss of items) Is there a function that checks the inside of a backpack?
My script and that there:
Ahhh ...
Building on the topic, how do I exhausted by one in action?
Now ....
thank you
First, sorry for my english (To use Google translator; P)
I created a script and looking for value more my server, so I use for the broom ...
My broom is used to clear the map and help the players financially
However ... So you can scan the item, it must separate each item, and I would like to add the ability to scan the items in the table if they are within a backpac ...
If the backpack has five jars, add the value of each bottle with the value of the backpack .... 10 If you have weak, would add an amount of money but the backpack 10 bottles .... (That is, the value that will add to the player, will vary)
And inside the backpack, that does not contain any item listed in the table, send a message disendo should get that item from the backpack to be able to excute the action (to prevent loss of items) Is there a function that checks the inside of a backpack?
My script and that there:
function onUse(cid, item, fromPosition, itemEx, toPosition)
local lixos = {
[7636] = 5,
[7634] = 10,
[7635] = 15
}
if lixos[itemEx.itemid] then
if toPosition.x ~= CONTAINER_POSITION then
doRemoveItem(itemEx.uid, 1)
doSendMagicEffect(toPosition,2)
doPlayerAddMoney(cid,lixos[itemEx.itemid])
doSendAnimatedText(fromPosition,"$ "..(lixos[itemEx.itemid]).." $",COLOR_LIGHTGREEN)
else
doPlayerSendCancel(cid, "Você não pode varrer o item na backpack.")
end
else
doPlayerSendCancel(cid, "Isso não é lixo.")
end
return TRUE
end
Ahhh ...
Building on the topic, how do I exhausted by one in action?
Now ....
thank you