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

I have problem with rune counts, plx help!

ximishe

New Member
Joined
Mar 23, 2010
Messages
49
Reaction score
1
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
 
it no work ;/
I using doPlayerGiveItem(cid, 2268, 14.29) and giving 105 sds... same like 14
When i use doPlayerGiveItem(cid, 2268, 13.29) and giving 91 sds.. same like 13
 
Back
Top