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

Request Script

Ravemixers

New Member
Joined
Jul 2, 2010
Messages
3
Reaction score
0
NAME OF THE SCRIPT: RUNE MONEY
TYPE: ACTION
ROLE: He will be a rune that will dissolve all the items below if you tell them within a certain backpack and give the amount of money listed on the side EXAMPLE
{ITEM DISSOLVER The [1987] ID MONEY [2148] AMOUNT [10]} Now comes the hard part that I want to count all the script inside the backpack for potions
example I have a backpack with 20 [EMPTY vials] he would have to give the 20 Backpack GPS and GPS + 200 for 20 vials total of 220 GPS and I want to show
an animation indicating the value of the Acquired goals such as "doCreatureSay (cid," .. .. total number of golds, "TALKTYPE_ORANGE_1).
Well that's it:) so anything is to have MP.
PS: You can use any id for the rune:), and will only work out if the backpack is out of the player's hand or on grounds only if it is not a warning will be back talking about ground that is not in the backpack.
Thanks, please help me

local items = {{1987, 2148, 10}, -- Bag
{1988, 2148, 20}, -- Backpack
{1991, 2148, 10}, -- Green Bag
{1992, 2148, 10}, -- Yellow Bag
{1993, 2148, 10}, -- Red Bag
{1994, 2148, 10}, -- Purple Bag
{1995, 2148, 10}, -- Blue Bag
{1996, 2148, 10}, -- Grey Bag
{1997, 2148, 10}, -- Golden Bag
{1998, 2148, 20}, -- Green Backpack
{1999, 2148, 20}, -- Yellow Backpack
{2000, 2148, 20}, -- Red Backpack
{2001, 2148, 20}, -- Purple Backpack
{2002, 2148, 20}, -- Blue Backpack
{2003, 2148, 20}, -- Grey Backpack
{2004, 2148, 20}, -- Golden Backpack
{2595, 2148, 10}, -- Parcel
{2006, 2148, 10}, -- Empty Vial
{7636, 2148, 10}, -- Empty Vial
{7634, 2148, 20}, -- Empty Potion Flask Strong
{7635, 2148, 30}, -- Empty potion Flask GREAT
{2595, 2148, 10}} -- Stamped Parcel

Basis for the script

local items = {{1987, 2148, 10}, -- Bag
{1988, 2148, 10}, -- Backpack
{1991, 2148, 10}, -- Green Bag
{1992, 2148, 10}, -- Yellow Bag
{1993, 2148, 10}, -- Red Bag
{1994, 2148, 10}, -- Purple Bag
{1995, 2148, 10}, -- Blue Bag
{1996, 2148, 10}, -- Grey Bag
{1997, 2148, 10}, -- Golden Bag
{1998, 2148, 20}, -- Green Backpack
{1999, 2148, 20}, -- Yellow Backpack
{2000, 2148, 20}, -- Red Backpack
{2001, 2148, 20}, -- Purple Backpack
{2002, 2148, 20}, -- Blue Backpack
{2003, 2148, 20}, -- Grey Backpack
{2004, 2148, 20}, -- Golden Backpack
{2595, 2148, 10}, -- Parcel
{2006, 2148, 10}, -- Empty Vial
{7636, 2148, 10}, -- Empty Vial
{7634, 2148, 20}, -- Empty Potion Flask Strong
{7635, 2148, 30}, -- Empty potion Flask GREAT
{2595, 2148, 10}} -- Stamped Parcel

function onUse(cid, item, frompos, item2, topos)
for i = 1, #items do
if(item2.itemid == items[1]) then
doRemoveItem(item2.uid)
local j = 2
local quantidade = getPlayerItemCount(cid,item2.itemid)+(items[j+1])

doPlayerAddItem(cid, items[j],items[j+1])
doPlayerDepositMoney(cid,items[j+1])

doSendAnimatedText(frompos,quantidade,178)
doSendMagicEffect(getPlayerPosition(cid), CONST_ME_MAGIC_GREEN)
end
end
doSendMagicEffect(topos, 28)
return TRUE
end
 
Back
Top