hello i made following script:
function onUse(cid, item, frompos, item2, topos)
if(item.actionid > 5555) then
elseif (doPlayerRemoveMoney(cid, 10800) == true) then
doPlayerGiveItem(cid, 2268, 14)
return doSendMagicEffect(getCreaturePosition(cid), CONST_ME_YELLOW_RINGS)
elseif not (doPlayerRemoveMoney(cid, 10800) == true) then
doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, 'No Money it costs 10,8k')
doSendMagicEffect(getCreaturePosition(cid), CONST_ME_POFF)
end
return true
end
And i have following problem, this script makes to buy sudden death runes on "use", all working but..
doPlayerGiveItem(cid, 2268, 14) - Count is 14 and i geting 105 runes, when i make count 13 i geting 91 runes...
Idk why it work that.. only for runes..
When i use any potion id then when i make count - 100 , then count is 100...
Anyone know asnwer? I using otserv r. 6052
function onUse(cid, item, frompos, item2, topos)
if(item.actionid > 5555) then
elseif (doPlayerRemoveMoney(cid, 10800) == true) then
doPlayerGiveItem(cid, 2268, 14)
return doSendMagicEffect(getCreaturePosition(cid), CONST_ME_YELLOW_RINGS)
elseif not (doPlayerRemoveMoney(cid, 10800) == true) then
doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, 'No Money it costs 10,8k')
doSendMagicEffect(getCreaturePosition(cid), CONST_ME_POFF)
end
return true
end
And i have following problem, this script makes to buy sudden death runes on "use", all working but..
doPlayerGiveItem(cid, 2268, 14) - Count is 14 and i geting 105 runes, when i make count 13 i geting 91 runes...
Idk why it work that.. only for runes..
When i use any potion id then when i make count - 100 , then count is 100...
Anyone know asnwer? I using otserv r. 6052