Il Knight
Veteran OT User
hi, i am triying to make this script work
Lua:
_____________________________
local chance = math.random(100)
local send = "asd"
function onDeath(creature, target, mostDamageKiller)
if getCreatureName(target) == "rat" then
player:setBankBalance(player:getBankBalance() + chance)
player:sendTextMessage(MESSAGE_STATUS_DEFAULT, send)
end
return true
end
______________________________
i need when you kill a "rat" in this case you get 0-100 gold coins in your bank balance but nothing happend :/
its possible to add more monsters in one script? like local monsters "rat", "rotworm" etc?
Lua:
_____________________________
local chance = math.random(100)
local send = "asd"
function onDeath(creature, target, mostDamageKiller)
if getCreatureName(target) == "rat" then
player:setBankBalance(player:getBankBalance() + chance)
player:sendTextMessage(MESSAGE_STATUS_DEFAULT, send)
end
return true
end
______________________________
i need when you kill a "rat" in this case you get 0-100 gold coins in your bank balance but nothing happend :/
its possible to add more monsters in one script? like local monsters "rat", "rotworm" etc?