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

Items Stackable for [8.60] The Forgotten Server 0.3.6 (Crying Damson) V8

Bayue

http://s.click.aliexpress.com/e/jMb2Nju33
Joined
May 10, 2013
Messages
46
Reaction score
0
I want my items to stack in my backpack automatically, like when I change gold it stacks with together etc. Is there a way to fix this?
Also when I try to buy aol or bless with the command "!aol" or "!bless" It says I still don't have enough money. I have changed it so it's alright but the problem is that it only detects gold coins, like when I have platinums or cyrstal coins it wont buy!

Here's the code for both commands.

function onSay(cid, words, param)
if doPlayerRemoveMoney(cid, 10000) == TRUE then
doPlayerAddItem(cid, 2173, 1)
doSendMagicEffect(getPlayerPosition(cid), CONST_ME_HOLYDAMAGE)
doPlayerSendTextMessage(cid,MESSAGE_INFO_DESCR,'You purchased an amulet of loss.')
else
doPlayerSendCancel(cid, "You need 10000 gold coins to purchase an amulet of loss.")
end
return TRUE
end

-----------------------------------------------------------------------------------------------

function onSay(cid, words, param)
if getPlayerBlessing(cid, 1) or getPlayerBlessing(cid, 2) or getPlayerBlessing(cid, 3) or getPlayerBlessing(cid, 4) or getPlayerBlessing(cid, 5) then
doPlayerSendCancel(cid,'You are already blessed.')
else
if doPlayerRemoveMoney(cid, 50000) == TRUE then
doPlayerAddBlessing(cid, 1)
doPlayerAddBlessing(cid, 2)
doPlayerAddBlessing(cid, 3)
doPlayerAddBlessing(cid, 4)
doPlayerAddBlessing(cid, 5)
doSendMagicEffect(getPlayerPosition(cid), CONST_ME_HOLYDAMAGE)
doPlayerSendTextMessage(cid,MESSAGE_INFO_DESCR,'You have successfully been blessed.')
else
doPlayerSendCancel(cid, "You need 50000 gold coins to purchase all the blessings.")
end
end
return 1
end

----------

Thanks in advance! :)
 
go To Lib--Constant
And Add This

Lua:
ITEM_PLATINUM_COIN = 2152
ITEM_CRYSTAL_COIN = 2160
under
Lua:
ITEM_GOLD_COIN = 2148

- - - Updated - - -

and go to Items and Add This
Lua:
<attribute key="worth" value="10000" />
UNDER
Lua:
<item id="2160" article="a" name="crystal coin" plural="crystal coins">
        <attribute key="weight" value="10" />
Add This
Lua:
<attribute key="worth" value="100" />
UNDER
Lua:
<item id="2152" article="a" name="platinum coin" plural="platinum coins">
        <attribute key="weight" value="10" />
 
go To Lib--Constant
And Add This

Lua:
ITEM_PLATINUM_COIN = 2152
ITEM_CRYSTAL_COIN = 2160
under
Lua:
ITEM_GOLD_COIN = 2148

It's already in there

ITEM_GOLD_COIN = 2148
ITEM_PLATINUM_COIN = 2152
ITEM_CRYSTAL_COIN = 2160
 
thats need a source edit :p sry but i really sux in c++ got -1 experience

Alright, thanks anyways, hopefully some other kind soul will help me out somehow, maybe someone already have some source file done or something xD
 
Back
Top