Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
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!
function onKill(cid, target, lastHit)
local m = 500 -- amount of gold
doPlayerAddItem(cid,2152,m)
doPlayerSendTextMessage(cid,20,'You gained '..m..'platinum coins.')
return true
end
This one will give a random amount between min and max (100,500)
Code:
function onKill(cid,target,lastHit)
local min, max = 100, 500
local m = math.random[min,max]
doPlayerAddItem(cid,2152,m)
doPlayerSendTextMessage(cid,20,'You gained '..m..'platinum coins.')
return true
end
function onKill(cid,target,lastHit)
local min, max = 100, 500
local m = math.random(min,max)
doPlayerAddItem(cid,2152,m)
doPlayerSendTextMessage(cid,20,'You gained '..m..'platinum coins.')
return true
end