• 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!

error in console onlogout

Thorn

Spriting since 2013
Joined
Sep 24, 2012
Messages
2,203
Solutions
1
Reaction score
921
Location
Chile
hello guys, im having an error in console concerning onlogout, i have no idea why or how to solve this, any ideas? :(

TFS 0.3!

Code:
[19/5/2017 9:35:38] [Error - CreatureScript Interface]
[19/5/2017 9:35:38] function onLogout(cid)
[19/5/2017 9:35:38]                         if getPlayerStorageValue(cid, 36901) > 0 and getPlayerStorageValue(cid, 35700) < 1 then
[19/5/2017 9:35:38]                                 doPlayerSetStorageValue(cid, 36901, 0)
[19/5/2017 9:35:38]                         end

[19/5/2017 9:35:38]                 return true
[19/5/2017 9:35:38]                 end
[19/5/2017 9:35:38] :onLogout
[19/5/2017 9:35:38] Description:
[19/5/2017 9:35:38] (LuaInterface::luaGetCreatureStorage) Creature not found
 
Last edited:
hehe ok thanks, didn't know what to post really
here is my creaturesripts:

Code:
<?xml version="1.0" encoding="UTF-8"?>
<creaturescripts>

    <event type="login" name="PlayerLogin" event="script" value="login.lua"/>
    <event type="login" name="FirstItems" script="firstitems.lua"/>
        <event type="login" name="ExpToken" event="script" value="xp.lua"/>
        <event type="login" name="TempleTeleporter" event="script" value="templeteleport.lua"/>
        <event type="login" name="PlayerLogin" event="script" value="login.lua"/>
        <event type="kill" name="Bounty" script="bounty.lua"/>
        <event type="kill" name="Frag Reward" event="script" value="frag_reward.lua"/>
   
   
    <!-- Pet System -->
        <!--<event type="joinchannel" name="GuildMotd" script="guildmotd.lua"/>-->
    <event type="preparedeath" name="Arena" event="script" value="Arena.lua"/>
    <event type="advance" name="AdvanceSave" event="script" value="advancesave.lua"/>
    <event type="MailReceive" name="Mail" event="script" value="mail.lua"/>
    <event type="reportbug" name="SaveReportBug" script="reportbug.lua"/>
    <event type="logout" name="demonOakLogout" event="script" value="demonOakLogout.lua"/>
    <event type="death" name="demonOakDeath" event="script" value="demonOakDeath.lua"/>
    <event type="death" name="PythiusTheRotten" event="script" value="PythiusTheRotten.lua"/>
    <event type="advance" name="fullmh" event="script" value="fullmh.lua"/>
    <event type="combat" name="partyAndGuildProtection" event="script" value="partyandguildprotection.lua"/>
    <event type="death" name="SkullAmulet" event="script" value="preparedeath.lua"/>
    
        <event type="advance" name="LevelRecompense" event="script" value="recompenselvl.lua"/>
    <event type="kill" name="task_count" event="script" value="task_count.lua"/>
    <event type="death" name="fury" event="script" value="fury.lua"/>
    <event type="death" name="wrath" event="script" value="wrath.lua"/>
    <event type="death" name="spite" event="script" value="spite.lua"/>
    <event type="death" name="scorn" event="script" value="scorn.lua"/>
    <event type="death" name="snake" event="script" value="snake.lua"/>
    <event type="death" name="Versperoth" event="script" value="Versperoth.lua"/>
     <event type="kill" name="KillingInTheNameOf" event="script" value="killinginthenameof.lua"/>
        <event type="kill" name="MonsterPortal" event="script" value="MonsterPortal.lua"/>
        <event type="kill" name="MonsterPortal2" event="script" value="MonsterPortal2.lua"/>
        <event type="kill" name="MonsterPortal3" event="script" value="MonsterPortal3.lua"/>
        <event type="kill" name="MonsterPortal4" event="script" value="MonsterPortal4.lua"/>
        <event type="kill" name="MonsterPortal5" event="script" value="MonsterPortal5.lua"/>
        <event type="death" name="Portal" event="script" value="dprune.lua" />
        <event type="kill" name="Daily quests killing" event="script" value="dailyQuestsKilling.lua"/>

    <!-- ban -->
    <event type="channelrequest" name="Ban_Type" event="script" value="ban/type.lua"/>
    <event type="channelrequest" name="Ban_Action" event="script" value="ban/action.lua"/>
    <event type="textedit" name="Ban_Finish" event="script" value="ban/finish.lua"/>

    <!-- Zombie Event -->
    <event type="statschange" name="zombieevent" event="script" value="zombievent.lua"/>

    <!-- Inquisition Full Quest -->
    <event type="kill" name="inquisitionPortals" script="Inquisition.lua"/>
    <event type="think" name="Idle" event="script" value="idle.lua"/>
    <event type="think" name="SkullCheck" event="script" value="skullcheck.lua"/>
   

</creaturescripts>
 
Problem is in demonOakLogout.lua or demonOakDeath.lua
sweet, this is my demonoakdeath.lua

any idea? D:
Code:
function onLogout(cid)

       
if getPlayerStorageValue(cid, 36901) > 0 and getPlayerStorageValue(cid, 35700) < 1 then
               
doPlayerSetStorageValue(cid, 36901, 0)
               
return TRUE
       
end
       
return TRUE

end
 
damnnnnnn i got a hell of a long error while testing demon oak!! if any of you guys have any idea how to fix this would be awesome, if not i will just delete demon oak
Code:
[19/5/2017 17:36:21] [Error - Action Interface]
[19/5/2017 17:36:21] local cid = 268457744
[19/5/2017 17:36:21] local item = {
[19/5/2017 17:36:21] uniqueid = 79522,
[19/5/2017 17:36:21] uid = 79522,
[19/5/2017 17:36:21] itemid = 8293,
[19/5/2017 17:36:21] id = 8293,
[19/5/2017 17:36:21] type = 0,
[19/5/2017 17:36:21] actionid = 0,
[19/5/2017 17:36:21] aid = 0
[19/5/2017 17:36:21] }
[19/5/2017 17:36:21] local fromPosition = {
[19/5/2017 17:36:21] x = 65535,
[19/5/2017 17:36:21] y = 64,
[19/5/2017 17:36:22] z = 1,
[19/5/2017 17:36:22] stackpos = 1
[19/5/2017 17:36:22] }
[19/5/2017 17:36:22] local itemEx = {
[19/5/2017 17:36:22] uniqueid = 79523,
[19/5/2017 17:36:22] uid = 79523,
[19/5/2017 17:36:22] itemid = 8289,
[19/5/2017 17:36:22] id = 8289,
[19/5/2017 17:36:22] type = 0,
[19/5/2017 17:36:22] actionid = 0,
[19/5/2017 17:36:22] aid = 0
[19/5/2017 17:36:22] }
[19/5/2017 17:36:22] local toPosition = {
[19/5/2017 17:36:22] x = 851,
[19/5/2017 17:36:22] y = 1118,
[19/5/2017 17:36:22] z = 7,
[19/5/2017 17:36:22] stackpos = 1
[19/5/2017 17:36:22] }
[19/5/2017 17:36:22] domodlib('demonOak_config')

[19/5/2017 17:36:22]                 if blockingTree[itemEx.itemid] and itemEx.uid == blockingTree[itemEx.itemid][1] then

[19/5/2017 17:36:23]                         local tree = toPosition
[19/5/2017 17:36:23]                         if isInRange(tree, areaPosition[1], areaPosition[2]) then
[19/5/2017 17:36:23]                                 print("MOD>> [Warning - Error::Demon Oak] Dead tree position is inside the quest area positions.\nDead tree position (x: " .. tree.x .. ", y: " .. tree.y .. ", z: " .. tree.z .. ")\nNorth-West area position (x: " .. areaPosition[1].x .. ", y: " .. areaPosition[1].y .. ", z: " .. areaPosition[1].z .. ")\nSouth-West area position (x: " .. areaPosition[2].x .. ", y: " .. areaPosition[2].y .. ", z: " .. areaPosition[2].z .. ")\nScript will not work correctly, please fix it.")
[19/5/2017 17:36:23]                                 doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, "Something is wrong, please contact a gamemaster.")
[19/5/2017 17:36:23]                                 return
[19/5/2017 17:36:23]                         end

[19/5/2017 17:36:23]                         if getPlayerLevel(cid) < level then
[19/5/2017 17:36:23]                                 doPlayerSendCancel(cid, "Tu Necesitas Level " .. level .. " O Mas Para Entrar A Esta Quest.")
[19/5/2017 17:36:23]                                 return true
[19/5/2017 17:36:23]                         end
[19/5/2017 17:36:23]                         if getPlayerStorageValue(cid, storages.done) > 0 then
[19/5/2017 17:36:23]                                 doPlayerSendCancel(cid, "Tu Ya Has Hecho Esta Quest.")
[19/5/2017 17:36:23]                                 return true
[19/5/2017 17:36:23]                         end
[19/5/2017 17:36:23]                         if getPlayerStorageValue(cid, storages.cutTree) > 0 then
[19/5/2017 17:36:23]                                 return
[19/5/2017 17:36:23]                         end

[19/5/2017 17:36:23]                         if onePerQuest then
[19/5/2017 17:36:23]                                 local players = getPlayersOnline()
[19/5/2017 17:36:23]                                 for _, pid in ipairs(players) do
[19/5/2017 17:36:23]                                 if isInRange(getCreaturePosition(pid), areaPosition[1], areaPosition[2]) then
[19/5/2017 17:36:23]                                         doPlayerSendCancel(cid, "Espera Que " .. getCreatureName(pid) .. " Finalize La Quest.")
[19/5/2017 17:36:23]                                         return true
[19/5/2017 17:36:23]                                 end
[19/5/2017 17:36:23]                                 end
[19/5/2017 17:36:23]                         end

[19/5/2017 17:36:23]                         doTransformItem(getThingFromPos(toPosition).uid, blockingTree[itemEx.itemid][2])
[19/5/2017 17:36:23]                         doSendMagicEffect(toPosition, CONST_ME_POFF)
[19/5/2017 17:36:23]                         doMoveCreature(cid, SOUTH)
[19/5/2017 17:36:23]                         doPlayerSetStorageValue(cid, storages.cutTree, 1)
[19/5/2017 17:36:23]                         return true

[19/5/2017 17:36:24]                 elseif isInArray(demonOak, itemEx.itemid) then

[19/5/2017 17:36:24]                         local get = getPlayerStorageValue(cid, itemEx.itemid)
[19/5/2017 17:36:24]                         if get == -1 then
[19/5/2017 17:36:24]                                 doPlayerSetStorageValue(cid, itemEx.itemid, 1)
[19/5/2017 17:36:24]                         end

[19/5/2017 17:36:24]                         if(getPlayerStorageValue(cid, 8288) == 12 and getPlayerStorageValue(cid, 8289) == 12 and getPlayerStorageValue(cid, 8290) == 12 and getPlayerStorageValue(cid, 8291) == 12) then
[19/5/2017 17:36:24]                                 doTeleportThing(cid, positions.kick)
[19/5/2017 17:36:24]                                 doPlayerSetStorageValue(cid, storages.done, 1)
[19/5/2017 17:36:24]                                 return true
[19/5/2017 17:36:24]                         end

[19/5/2017 17:36:24]                         if getPlayerStorageValue(cid, itemEx.itemid) > 11 then
[19/5/2017 17:36:24]                                 doSendMagicEffect(toPosition, CONST_ME_POFF)
[19/5/2017 17:36:24]                                 return true
[19/5/2017 17:36:24]                         end

[19/5/2017 17:36:24]                         if(math.random(100) <= 1) then
[19/5/2017 17:36:24]                                 doPlayerSetStorageValue(cid, itemEx.uid, 12)
[19/5/2017 17:36:25]                                 return true
[19/5/2017 17:36:25]                         end


[19/5/2017 17:36:25]                         if summons[get] then
[19/5/2017 17:36:25]                                 for i = 1, #summons[get] do
[19/5/2017 17:36:25]                                         doCreateMonster(summons[get][i], positions.summon[i])
[19/5/2017 17:36:25]                                         doSendMagicEffect(positions.summon[i], CONST_ME_TELEPORT)
[19/5/2017 17:36:25]                                 end
[19/5/2017 17:36:25]                                         doSendMagicEffect(toPosition, CONST_ME_DRAWBLOOD)
[19/5/2017 17:36:25]                                         doPlayerSetStorageValue(cid, itemEx.itemid, get + 1)
[19/5/2017 17:36:25]                                 if math.random(100) >= 50 then
[19/5/2017 17:36:25]                                         doCreatureAddHealth(cid, -300)

[19/5/2017 17:36:25]                                 end
[19/5/2017 17:36:25]                         return
[19/5/2017 17:36:25]                         end
[19/5/2017 17:36:25]                 end
[19/5/2017 17:36:25]        
[19/5/2017 17:36:25] Description:
[19/5/2017 17:36:26] (LuaInterface::luaDoCreateMonster) Cannot create monster: Elder Beholder

[19/5/2017 17:36:26] [Error - Action Interface]
[19/5/2017 17:36:26] local cid = 268457744
[19/5/2017 17:36:26] local item = {
[19/5/2017 17:36:26] uniqueid = 79522,
[19/5/2017 17:36:26] uid = 79522,
[19/5/2017 17:36:26] itemid = 8293,
[19/5/2017 17:36:26] id = 8293,
[19/5/2017 17:36:26] type = 0,
[19/5/2017 17:36:26] actionid = 0,
[19/5/2017 17:36:26] aid = 0
[19/5/2017 17:36:26] }
[19/5/2017 17:36:26] local fromPosition = {
[19/5/2017 17:36:26] x = 65535,
[19/5/2017 17:36:26] y = 64,
[19/5/2017 17:36:26] z = 1,
[19/5/2017 17:36:26] stackpos = 1
[19/5/2017 17:36:26] }
[19/5/2017 17:36:26] local itemEx = {
[19/5/2017 17:36:27] uniqueid = 79523,
[19/5/2017 17:36:27] uid = 79523,
[19/5/2017 17:36:27] itemid = 8289,
[19/5/2017 17:36:27] id = 8289,
[19/5/2017 17:36:27] type = 0,
[19/5/2017 17:36:27] actionid = 0,
[19/5/2017 17:36:27] aid = 0
[19/5/2017 17:36:27] }
[19/5/2017 17:36:27] local toPosition = {
[19/5/2017 17:36:27] x = 851,
[19/5/2017 17:36:27] y = 1118,
[19/5/2017 17:36:27] z = 7,
[19/5/2017 17:36:27] stackpos = 1
[19/5/2017 17:36:27] }
[19/5/2017 17:36:27] domodlib('demonOak_config')

[19/5/2017 17:36:27]                 if blockingTree[itemEx.itemid] and itemEx.uid == blockingTree[itemEx.itemid][1] then

[19/5/2017 17:36:27]                         local tree = toPosition
[19/5/2017 17:36:28]                         if isInRange(tree, areaPosition[1], areaPosition[2]) then
[19/5/2017 17:36:28]                                 print("MOD>> [Warning - Error::Demon Oak] Dead tree position is inside the quest area positions.\nDead tree position (x: " .. tree.x .. ", y: " .. tree.y .. ", z: " .. tree.z .. ")\nNorth-West area position (x: " .. areaPosition[1].x .. ", y: " .. areaPosition[1].y .. ", z: " .. areaPosition[1].z .. ")\nSouth-West area position (x: " .. areaPosition[2].x .. ", y: " .. areaPosition[2].y .. ", z: " .. areaPosition[2].z .. ")\nScript will not work correctly, please fix it.")
[19/5/2017 17:36:28]                                 doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, "Something is wrong, please contact a gamemaster.")
[19/5/2017 17:36:28]                                 return
[19/5/2017 17:36:28]                         end

[19/5/2017 17:36:28]                         if getPlayerLevel(cid) < level then
[19/5/2017 17:36:28]                                 doPlayerSendCancel(cid, "Tu Necesitas Level " .. level .. " O Mas Para Entrar A Esta Quest.")
[19/5/2017 17:36:28]                                 return true
[19/5/2017 17:36:28]                         end
[19/5/2017 17:36:28]                         if getPlayerStorageValue(cid, storages.done) > 0 then
[19/5/2017 17:36:28]                                 doPlayerSendCancel(cid, "Tu Ya Has Hecho Esta Quest.")
[19/5/2017 17:36:28]                                 return true
[19/5/2017 17:36:28]                         end
[19/5/2017 17:36:28]                         if getPlayerStorageValue(cid, storages.cutTree) > 0 then
[19/5/2017 17:36:28]                                 return
[19/5/2017 17:36:28]                         end

[19/5/2017 17:36:29]                         if onePerQuest then
[19/5/2017 17:36:29]                                 local players = getPlayersOnline()
[19/5/2017 17:36:29]                                 for _, pid in ipairs(players) do
[19/5/2017 17:36:29]                                 if isInRange(getCreaturePosition(pid), areaPosition[1], areaPosition[2]) then
[19/5/2017 17:36:29]                                         doPlayerSendCancel(cid, "Espera Que " .. getCreatureName(pid) .. " Finalize La Quest.")
[19/5/2017 17:36:29]                                         return true
[19/5/2017 17:36:29]                                 end
[19/5/2017 17:36:29]                                 end
[19/5/2017 17:36:29]                         end

[19/5/2017 17:36:29]                         doTransformItem(getThingFromPos(toPosition).uid, blockingTree[itemEx.itemid][2])
[19/5/2017 17:36:29]                         doSendMagicEffect(toPosition, CONST_ME_POFF)
[19/5/2017 17:36:29]                         doMoveCreature(cid, SOUTH)
[19/5/2017 17:36:29]                         doPlayerSetStorageValue(cid, storages.cutTree, 1)
[19/5/2017 17:36:29]                         return true

[19/5/2017 17:36:29]                 elseif isInArray(demonOak, itemEx.itemid) then

[19/5/2017 17:36:30]                         local get = getPlayerStorageValue(cid, itemEx.itemid)
[19/5/2017 17:36:30]                         if get == -1 then
[19/5/2017 17:36:30]                                 doPlayerSetStorageValue(cid, itemEx.itemid, 1)
[19/5/2017 17:36:30]                         end

[19/5/2017 17:36:30]                         if(getPlayerStorageValue(cid, 8288) == 12 and getPlayerStorageValue(cid, 8289) == 12 and getPlayerStorageValue(cid, 8290) == 12 and getPlayerStorageValue(cid, 8291) == 12) then
[19/5/2017 17:36:30]                                 doTeleportThing(cid, positions.kick)
[19/5/2017 17:36:30]                                 doPlayerSetStorageValue(cid, storages.done, 1)
[19/5/2017 17:36:30]                                 return true
[19/5/2017 17:36:30]                         end

[19/5/2017 17:36:30]                         if getPlayerStorageValue(cid, itemEx.itemid) > 11 then
[19/5/2017 17:36:30]                                 doSendMagicEffect(toPosition, CONST_ME_POFF)
[19/5/2017 17:36:30]                                 return true
[19/5/2017 17:36:30]                         end

[19/5/2017 17:36:30]                         if(math.random(100) <= 1) then
[19/5/2017 17:36:30]                                 doPlayerSetStorageValue(cid, itemEx.uid, 12)
[19/5/2017 17:36:31]                                 return true
[19/5/2017 17:36:31]                         end


[19/5/2017 17:36:31]                         if summons[get] then
[19/5/2017 17:36:31]                                 for i = 1, #summons[get] do
[19/5/2017 17:36:31]                                         doCreateMonster(summons[get][i], positions.summon[i])
[19/5/2017 17:36:31]                                         doSendMagicEffect(positions.summon[i], CONST_ME_TELEPORT)
[19/5/2017 17:36:31]                                 end
[19/5/2017 17:36:31]                                         doSendMagicEffect(toPosition, CONST_ME_DRAWBLOOD)
[19/5/2017 17:36:31]                                         doPlayerSetStorageValue(cid, itemEx.itemid, get + 1)
[19/5/2017 17:36:31]                                 if math.random(100) >= 50 then
[19/5/2017 17:36:31]                                         doCreatureAddHealth(cid, -300)

[19/5/2017 17:36:31]                                 end
[19/5/2017 17:36:31]                         return
[19/5/2017 17:36:31]                         end
[19/5/2017 17:36:31]                 end
[19/5/2017 17:36:32]        
[19/5/2017 17:36:32] Description:
[19/5/2017 17:36:32] (LuaInterface::luaDoCreateMonster) Cannot create monster: Betrayed Wraith

[19/5/2017 17:36:32] [Error - Action Interface]
[19/5/2017 17:36:32] local cid = 268457744
[19/5/2017 17:36:32] local item = {
[19/5/2017 17:36:32] uniqueid = 79522,
[19/5/2017 17:36:32] uid = 79522,
[19/5/2017 17:36:32] itemid = 8293,
[19/5/2017 17:36:32] id = 8293,
[19/5/2017 17:36:32] type = 0,
[19/5/2017 17:36:32] actionid = 0,
[19/5/2017 17:36:32] aid = 0
[19/5/2017 17:36:32] }
[19/5/2017 17:36:32] local fromPosition = {
[19/5/2017 17:36:33] x = 65535,
[19/5/2017 17:36:33] y = 64,
[19/5/2017 17:36:33] z = 1,
[19/5/2017 17:36:33] stackpos = 1
[19/5/2017 17:36:33] }
[19/5/2017 17:36:33] local itemEx = {
[19/5/2017 17:36:33] uniqueid = 79523,
[19/5/2017 17:36:33] uid = 79523,
[19/5/2017 17:36:33] itemid = 8289,
[19/5/2017 17:36:33] id = 8289,
[19/5/2017 17:36:33] type = 0,
[19/5/2017 17:36:33] actionid = 0,
[19/5/2017 17:36:33] aid = 0
[19/5/2017 17:36:33] }
[19/5/2017 17:36:33] local toPosition = {
[19/5/2017 17:36:34] x = 851,
[19/5/2017 17:36:34] y = 1118,
[19/5/2017 17:36:34] z = 7,
[19/5/2017 17:36:34] stackpos = 1
[19/5/2017 17:36:34] }
[19/5/2017 17:36:34] domodlib('demonOak_config')

[19/5/2017 17:36:34]                 if blockingTree[itemEx.itemid] and itemEx.uid == blockingTree[itemEx.itemid][1] then

[19/5/2017 17:36:34]                         local tree = toPosition
[19/5/2017 17:36:34]                         if isInRange(tree, areaPosition[1], areaPosition[2]) then
[19/5/2017 17:36:34]                                 print("MOD>> [Warning - Error::Demon Oak] Dead tree position is inside the quest area positions.\nDead tree position (x: " .. tree.x .. ", y: " .. tree.y .. ", z: " .. tree.z .. ")\nNorth-West area position (x: " .. areaPosition[1].x .. ", y: " .. areaPosition[1].y .. ", z: " .. areaPosition[1].z .. ")\nSouth-West area position (x: " .. areaPosition[2].x .. ", y: " .. areaPosition[2].y .. ", z: " .. areaPosition[2].z .. ")\nScript will not work correctly, please fix it.")
[19/5/2017 17:36:34]                                 doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, "Something is wrong, please contact a gamemaster.")
[19/5/2017 17:36:34]                                 return
[19/5/2017 17:36:34]                         end

[19/5/2017 17:36:34]                         if getPlayerLevel(cid) < level then
[19/5/2017 17:36:35]                                 doPlayerSendCancel(cid, "Tu Necesitas Level " .. level .. " O Mas Para Entrar A Esta Quest.")
[19/5/2017 17:36:35]                                 return true
[19/5/2017 17:36:35]                         end
[19/5/2017 17:36:35]                         if getPlayerStorageValue(cid, storages.done) > 0 then
[19/5/2017 17:36:35]                                 doPlayerSendCancel(cid, "Tu Ya Has Hecho Esta Quest.")
[19/5/2017 17:36:35]                                 return true
[19/5/2017 17:36:35]                         end
[19/5/2017 17:36:35]                         if getPlayerStorageValue(cid, storages.cutTree) > 0 then
[19/5/2017 17:36:35]                                 return
[19/5/2017 17:36:35]                         end

[19/5/2017 17:36:35]                         if onePerQuest then
[19/5/2017 17:36:35]                                 local players = getPlayersOnline()
[19/5/2017 17:36:35]                                 for _, pid in ipairs(players) do
[19/5/2017 17:36:35]                                 if isInRange(getCreaturePosition(pid), areaPosition[1], areaPosition[2]) then
[19/5/2017 17:36:35]                                         doPlayerSendCancel(cid, "Espera Que " .. getCreatureName(pid) .. " Finalize La Quest.")
[19/5/2017 17:36:36]                                         return true
[19/5/2017 17:36:36]                                 end
[19/5/2017 17:36:36]                                 end
[19/5/2017 17:36:36]                         end

[19/5/2017 17:36:36]                         doTransformItem(getThingFromPos(toPosition).uid, blockingTree[itemEx.itemid][2])
[19/5/2017 17:36:36]                         doSendMagicEffect(toPosition, CONST_ME_POFF)
[19/5/2017 17:36:36]                         doMoveCreature(cid, SOUTH)
[19/5/2017 17:36:36]                         doPlayerSetStorageValue(cid, storages.cutTree, 1)
[19/5/2017 17:36:36]                         return true

[19/5/2017 17:36:36]                 elseif isInArray(demonOak, itemEx.itemid) then

[19/5/2017 17:36:36]                         local get = getPlayerStorageValue(cid, itemEx.itemid)
[19/5/2017 17:36:36]                         if get == -1 then
[19/5/2017 17:36:36]                                 doPlayerSetStorageValue(cid, itemEx.itemid, 1)
[19/5/2017 17:36:36]                         end

[19/5/2017 17:36:37]                         if(getPlayerStorageValue(cid, 8288) == 12 and getPlayerStorageValue(cid, 8289) == 12 and getPlayerStorageValue(cid, 8290) == 12 and getPlayerStorageValue(cid, 8291) == 12) then
[19/5/2017 17:36:37]                                 doTeleportThing(cid, positions.kick)
[19/5/2017 17:36:37]                                 doPlayerSetStorageValue(cid, storages.done, 1)
[19/5/2017 17:36:37]                                 return true
[19/5/2017 17:36:37]                         end

[19/5/2017 17:36:37]                         if getPlayerStorageValue(cid, itemEx.itemid) > 11 then
[19/5/2017 17:36:37]                                 doSendMagicEffect(toPosition, CONST_ME_POFF)
[19/5/2017 17:36:37]                                 return true
[19/5/2017 17:36:37]                         end

[19/5/2017 17:36:37]                         if(math.random(100) <= 1) then
[19/5/2017 17:36:37]                                 doPlayerSetStorageValue(cid, itemEx.uid, 12)
[19/5/2017 17:36:37]                                 return true
[19/5/2017 17:36:37]                         end


[19/5/2017 17:36:37]                         if summons[get] then
[19/5/2017 17:36:38]                                 for i = 1, #summons[get] do
[19/5/2017 17:36:38]                                         doCreateMonster(summons[get][i], positions.summon[i])
[19/5/2017 17:36:38]                                         doSendMagicEffect(positions.summon[i], CONST_ME_TELEPORT)
[19/5/2017 17:36:38]                                 end
[19/5/2017 17:36:38]                                         doSendMagicEffect(toPosition, CONST_ME_DRAWBLOOD)
[19/5/2017 17:36:38]                                         doPlayerSetStorageValue(cid, itemEx.itemid, get + 1)
[19/5/2017 17:36:38]                                 if math.random(100) >= 50 then
[19/5/2017 17:36:38]                                         doCreatureAddHealth(cid, -300)

[19/5/2017 17:36:38]                                 end
[19/5/2017 17:36:38]                         return
[19/5/2017 17:36:38]                         end
[19/5/2017 17:36:38]                 end
[19/5/2017 17:36:38]        
[19/5/2017 17:36:38] Description:
[19/5/2017 17:36:38] (LuaInterface::luaDoCreateMonster) Cannot create monster: Demon Skeleton
 
Back
Top