• 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!
  • 2026 staff recruitment is open! Check it out and consider applying!

Set x item on global loot

wafuboe

Active Member
Joined
Dec 24, 2010
Messages
884
Solutions
2
Reaction score
26
well i got a question is this possible?

i wanna make an event that all monsters will drop "x" item and the players have to loot it and exhange it for prizes,,
but add the "x" item loot to all monsters in my server its a really big job,

so is this any possibilty to do a creaturescipts or dunno,, for example, when you kill a monster you have a chance to receive "x" item automaticly or loot it??

thanks :D

- - - Updated - - -

bump
 
LUA:
function onKill(cid, target, lastHit)
local item,chance = 2160,50
if isMonster(target) and chance > math.random(1, 100) then
doPlayerAddItem(cid,item,1)
end
return true
end
 
Back
Top