Nightimares
New Member
- Joined
- Feb 27, 2017
- Messages
- 4
- Reaction score
- 0
function onStepIn(cid, item, position, fromPosition)
if isPlayer(cid) then
doPlayerAddMoney(cid, 10000)
doRemoveItem(item.uid,1)
doPlayerDepositAllMoney(cid)
doSendMagicEffect(getCreaturePosition(cid), 53)
doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "Balance: $" .. getPlayerBalance(cid) .. "!")
else
doRemoveItem(item.uid,1)
doSendMagicEffect(getCreaturePosition(cid), 66)
end
return true
end
So basically I got this to work with 1 crystal coin but could someone make it work with more than 1 crystal coin?
if isPlayer(cid) then
doPlayerAddMoney(cid, 10000)
doRemoveItem(item.uid,1)
doPlayerDepositAllMoney(cid)
doSendMagicEffect(getCreaturePosition(cid), 53)
doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "Balance: $" .. getPlayerBalance(cid) .. "!")
else
doRemoveItem(item.uid,1)
doSendMagicEffect(getCreaturePosition(cid), 66)
end
return true
end
So basically I got this to work with 1 crystal coin but could someone make it work with more than 1 crystal coin?