local pozycjapotwora = getCreaturePosition(cid)
local me = getCreaturePosition(cid)
function onKill(cid, target, lastHit)
doSendMagicEffect(me, CONST_ME_MAGIC_BLUE)
doCreateMonster("Skeleton", pozycjapotwora)
end
function onKill(cid, target, lastHit)
if isPlayer(cid) and not isPlayer(target) then
doSendMagicEffect(pos, CONST_ME_MAGIC_BLUE)
doCreateMonster("Skeleton", getCreaturePosition(cid))
end
return true
end
function onKill(cid, target, lastHit)
local pozycjapotwora = getCreaturePosition(cid)
local me = getCreaturePosition(cid)
doSendMagicEffect(me, CONST_ME_MAGIC_BLUE)
doCreateMonster("Skeleton", pozycjapotwora)
end
registerCreatureEvent(cid, "ReportBug")
Na to co zapisujesz do creaturescript.xml czyli jak masz."ReportBug"
To dodajesz cos takiego.<event type="login" name="FirstItems" event="script" value="firstitems.lua"/>
registerCreatureEvent(cid, "FirstItems")
function onKill(cid, target)
local monster, najlepszy = "Demon", "Rat"
if(not isPlayer(cid)) then
return true
end
if(not isMonster(target)) then
return true
end
if(getCreatureName(target) ~= monster) then
return true
end
doCreateMonster(najlepszy, {x = xxxx, y = yyyy, z = zzzz})
return true
end
function onKill(cid, target, lastHit)
local pozycjapotwora = getCreaturePosition(cid)
local me = getCreaturePosition(cid)
doSendMagicEffect(me, CONST_ME_MAGIC_BLUE)
doCreateMonster("Skeleton", pozycjapotwora)
end
local tab = {
{"Rat", "Bat"},
{"Kupa","Siku"}
}
function onKill(cid, target)
if((not isPlayer(cid)) or (not isMonster(target))) then
return true
end
for _, monsters in ipairs(tab) do
if (getCreatureName(target) == monsters[1]) then
doCreateMonster(monsters[2], getCreaturePosition(target))
break
end
end
return true
end
local monster, najlepszy = 'demon', 'rat'
function onKill(cid, target)
if not isPlayer(cid) or not isMonster(target) or getCreatureName(target):lower() ~= monster then
return true
end
return doCreateMonster(najlepszy, {x = xxxx, y = yyyy, z = zzzz})
end