error in console onlogout

Discussion in 'Support' started by Thorn, May 19, 2017.

  1. Thorn

    Thorn Well-Known Member

    Joined:
    Sep 24, 2012
    Messages:
    1,791
    Likes Received:
    773
    Best Answers:
    0
    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 (Text):
    1. [19/5/2017 9:35:38] [Error - CreatureScript Interface]
    2. [19/5/2017 9:35:38] function onLogout(cid)
    3. [19/5/2017 9:35:38]                         if getPlayerStorageValue(cid, 36901) > 0 and getPlayerStorageValue(cid, 35700) < 1 then
    4. [19/5/2017 9:35:38]                                 doPlayerSetStorageValue(cid, 36901, 0)
    5. [19/5/2017 9:35:38]                         end
    6.  
    7. [19/5/2017 9:35:38]                 return true
    8. [19/5/2017 9:35:38]                 end
    9. [19/5/2017 9:35:38] :onLogout
    10. [19/5/2017 9:35:38] Description:
    11. [19/5/2017 9:35:38] (LuaInterface::luaGetCreatureStorage) Creature not found
    12.  
     
    Last edited: May 22, 2017
  2. slawkens

    slawkens Well-Known Member

    Joined:
    Aug 27, 2007
    Messages:
    2,421
    Likes Received:
    152
    Best Answers:
    11
    Would be nice if you could post your script ;)
     
  3. Thorn

    Thorn Well-Known Member

    Joined:
    Sep 24, 2012
    Messages:
    1,791
    Likes Received:
    773
    Best Answers:
    0
    wich script? D:
     
  4. Codex NG

    Codex NG Recurrent Flamer

    Joined:
    Jul 24, 2015
    Messages:
    3,002
    Likes Received:
    1,586
    Best Answers:
    11
    Code (Text):
    1. Creature not found
    We can't do much for you if you don't post the code.
     
  5. Aled

    Aled Active Member (probably)

    Joined:
    Mar 30, 2017
    Messages:
    214
    Likes Received:
    126
    Best Answers:
    16
    whatever onLogout events you have running in creaturescripts.xml
     
  6. Thorn

    Thorn Well-Known Member

    Joined:
    Sep 24, 2012
    Messages:
    1,791
    Likes Received:
    773
    Best Answers:
    0
    hehe ok thanks, didn't know what to post really
    here is my creaturesripts:

    Code (Text):
    1. <?xml version="1.0" encoding="UTF-8"?>
    2. <creaturescripts>
    3.  
    4.     <event type="login" name="PlayerLogin" event="script" value="login.lua"/>
    5.     <event type="login" name="FirstItems" script="firstitems.lua"/>
    6.         <event type="login" name="ExpToken" event="script" value="xp.lua"/>
    7.         <event type="login" name="TempleTeleporter" event="script" value="templeteleport.lua"/>
    8.         <event type="login" name="PlayerLogin" event="script" value="login.lua"/>
    9.         <event type="kill" name="Bounty" script="bounty.lua"/>
    10.         <event type="kill" name="Frag Reward" event="script" value="frag_reward.lua"/>
    11.    
    12.    
    13.     <!-- Pet System -->
    14.         <!--<event type="joinchannel" name="GuildMotd" script="guildmotd.lua"/>-->
    15.     <event type="preparedeath" name="Arena" event="script" value="Arena.lua"/>
    16.     <event type="advance" name="AdvanceSave" event="script" value="advancesave.lua"/>
    17.     <event type="MailReceive" name="Mail" event="script" value="mail.lua"/>
    18.     <event type="reportbug" name="SaveReportBug" script="reportbug.lua"/>
    19.     <event type="logout" name="demonOakLogout" event="script" value="demonOakLogout.lua"/>
    20.     <event type="death" name="demonOakDeath" event="script" value="demonOakDeath.lua"/>
    21.     <event type="death" name="PythiusTheRotten" event="script" value="PythiusTheRotten.lua"/>
    22.     <event type="advance" name="fullmh" event="script" value="fullmh.lua"/>
    23.     <event type="combat" name="partyAndGuildProtection" event="script" value="partyandguildprotection.lua"/>
    24.     <event type="death" name="SkullAmulet" event="script" value="preparedeath.lua"/>
    25.    
    26.         <event type="advance" name="LevelRecompense" event="script" value="recompenselvl.lua"/>
    27.     <event type="kill" name="task_count" event="script" value="task_count.lua"/>
    28.     <event type="death" name="fury" event="script" value="fury.lua"/>
    29.     <event type="death" name="wrath" event="script" value="wrath.lua"/>
    30.     <event type="death" name="spite" event="script" value="spite.lua"/>
    31.     <event type="death" name="scorn" event="script" value="scorn.lua"/>
    32.     <event type="death" name="snake" event="script" value="snake.lua"/>
    33.     <event type="death" name="Versperoth" event="script" value="Versperoth.lua"/>
    34.      <event type="kill" name="KillingInTheNameOf" event="script" value="killinginthenameof.lua"/>
    35.         <event type="kill" name="MonsterPortal" event="script" value="MonsterPortal.lua"/>
    36.         <event type="kill" name="MonsterPortal2" event="script" value="MonsterPortal2.lua"/>
    37.         <event type="kill" name="MonsterPortal3" event="script" value="MonsterPortal3.lua"/>
    38.         <event type="kill" name="MonsterPortal4" event="script" value="MonsterPortal4.lua"/>
    39.         <event type="kill" name="MonsterPortal5" event="script" value="MonsterPortal5.lua"/>
    40.         <event type="death" name="Portal" event="script" value="dprune.lua" />
    41.         <event type="kill" name="Daily quests killing" event="script" value="dailyQuestsKilling.lua"/>
    42.  
    43.     <!-- ban -->
    44.     <event type="channelrequest" name="Ban_Type" event="script" value="ban/type.lua"/>
    45.     <event type="channelrequest" name="Ban_Action" event="script" value="ban/action.lua"/>
    46.     <event type="textedit" name="Ban_Finish" event="script" value="ban/finish.lua"/>
    47.  
    48.     <!-- Zombie Event -->
    49.     <event type="statschange" name="zombieevent" event="script" value="zombievent.lua"/>
    50.  
    51.     <!-- Inquisition Full Quest -->
    52.     <event type="kill" name="inquisitionPortals" script="Inquisition.lua"/>
    53.     <event type="think" name="Idle" event="script" value="idle.lua"/>
    54.     <event type="think" name="SkullCheck" event="script" value="skullcheck.lua"/>
    55.    
    56.  
    57. </creaturescripts>
    58.  
     
  7. arti1194

    arti1194 Member

    Joined:
    Jun 6, 2009
    Messages:
    96
    Likes Received:
    3
    Best Answers:
    0
    Problem is in demonOakLogout.lua or demonOakDeath.lua
     
  8. Thorn

    Thorn Well-Known Member

    Joined:
    Sep 24, 2012
    Messages:
    1,791
    Likes Received:
    773
    Best Answers:
    0
    sweet, this is my demonoakdeath.lua

    any idea? D:
    Code (Text):
    1. function onLogout(cid)
    2.  
    3.        
    4. if getPlayerStorageValue(cid, 36901) > 0 and getPlayerStorageValue(cid, 35700) < 1 then
    5.                
    6. doPlayerSetStorageValue(cid, 36901, 0)
    7.                
    8. return TRUE
    9.        
    10. end
    11.        
    12. return TRUE
    13.  
    14. end
     
  9. Thorn

    Thorn Well-Known Member

    Joined:
    Sep 24, 2012
    Messages:
    1,791
    Likes Received:
    773
    Best Answers:
    0
    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 (Text):
    1. [19/5/2017 17:36:21] [Error - Action Interface]
    2. [19/5/2017 17:36:21] local cid = 268457744
    3. [19/5/2017 17:36:21] local item = {
    4. [19/5/2017 17:36:21] uniqueid = 79522,
    5. [19/5/2017 17:36:21] uid = 79522,
    6. [19/5/2017 17:36:21] itemid = 8293,
    7. [19/5/2017 17:36:21] id = 8293,
    8. [19/5/2017 17:36:21] type = 0,
    9. [19/5/2017 17:36:21] actionid = 0,
    10. [19/5/2017 17:36:21] aid = 0
    11. [19/5/2017 17:36:21] }
    12. [19/5/2017 17:36:21] local fromPosition = {
    13. [19/5/2017 17:36:21] x = 65535,
    14. [19/5/2017 17:36:21] y = 64,
    15. [19/5/2017 17:36:22] z = 1,
    16. [19/5/2017 17:36:22] stackpos = 1
    17. [19/5/2017 17:36:22] }
    18. [19/5/2017 17:36:22] local itemEx = {
    19. [19/5/2017 17:36:22] uniqueid = 79523,
    20. [19/5/2017 17:36:22] uid = 79523,
    21. [19/5/2017 17:36:22] itemid = 8289,
    22. [19/5/2017 17:36:22] id = 8289,
    23. [19/5/2017 17:36:22] type = 0,
    24. [19/5/2017 17:36:22] actionid = 0,
    25. [19/5/2017 17:36:22] aid = 0
    26. [19/5/2017 17:36:22] }
    27. [19/5/2017 17:36:22] local toPosition = {
    28. [19/5/2017 17:36:22] x = 851,
    29. [19/5/2017 17:36:22] y = 1118,
    30. [19/5/2017 17:36:22] z = 7,
    31. [19/5/2017 17:36:22] stackpos = 1
    32. [19/5/2017 17:36:22] }
    33. [19/5/2017 17:36:22] domodlib('demonOak_config')
    34.  
    35. [19/5/2017 17:36:22]                 if blockingTree[itemEx.itemid] and itemEx.uid == blockingTree[itemEx.itemid][1] then
    36.  
    37. [19/5/2017 17:36:23]                         local tree = toPosition
    38. [19/5/2017 17:36:23]                         if isInRange(tree, areaPosition[1], areaPosition[2]) then
    39. [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.")
    40. [19/5/2017 17:36:23]                                 doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, "Something is wrong, please contact a gamemaster.")
    41. [19/5/2017 17:36:23]                                 return
    42. [19/5/2017 17:36:23]                         end
    43.  
    44. [19/5/2017 17:36:23]                         if getPlayerLevel(cid) < level then
    45. [19/5/2017 17:36:23]                                 doPlayerSendCancel(cid, "Tu Necesitas Level " .. level .. " O Mas Para Entrar A Esta Quest.")
    46. [19/5/2017 17:36:23]                                 return true
    47. [19/5/2017 17:36:23]                         end
    48. [19/5/2017 17:36:23]                         if getPlayerStorageValue(cid, storages.done) > 0 then
    49. [19/5/2017 17:36:23]                                 doPlayerSendCancel(cid, "Tu Ya Has Hecho Esta Quest.")
    50. [19/5/2017 17:36:23]                                 return true
    51. [19/5/2017 17:36:23]                         end
    52. [19/5/2017 17:36:23]                         if getPlayerStorageValue(cid, storages.cutTree) > 0 then
    53. [19/5/2017 17:36:23]                                 return
    54. [19/5/2017 17:36:23]                         end
    55.  
    56. [19/5/2017 17:36:23]                         if onePerQuest then
    57. [19/5/2017 17:36:23]                                 local players = getPlayersOnline()
    58. [19/5/2017 17:36:23]                                 for _, pid in ipairs(players) do
    59. [19/5/2017 17:36:23]                                 if isInRange(getCreaturePosition(pid), areaPosition[1], areaPosition[2]) then
    60. [19/5/2017 17:36:23]                                         doPlayerSendCancel(cid, "Espera Que " .. getCreatureName(pid) .. " Finalize La Quest.")
    61. [19/5/2017 17:36:23]                                         return true
    62. [19/5/2017 17:36:23]                                 end
    63. [19/5/2017 17:36:23]                                 end
    64. [19/5/2017 17:36:23]                         end
    65.  
    66. [19/5/2017 17:36:23]                         doTransformItem(getThingFromPos(toPosition).uid, blockingTree[itemEx.itemid][2])
    67. [19/5/2017 17:36:23]                         doSendMagicEffect(toPosition, CONST_ME_POFF)
    68. [19/5/2017 17:36:23]                         doMoveCreature(cid, SOUTH)
    69. [19/5/2017 17:36:23]                         doPlayerSetStorageValue(cid, storages.cutTree, 1)
    70. [19/5/2017 17:36:23]                         return true
    71.  
    72. [19/5/2017 17:36:24]                 elseif isInArray(demonOak, itemEx.itemid) then
    73.  
    74. [19/5/2017 17:36:24]                         local get = getPlayerStorageValue(cid, itemEx.itemid)
    75. [19/5/2017 17:36:24]                         if get == -1 then
    76. [19/5/2017 17:36:24]                                 doPlayerSetStorageValue(cid, itemEx.itemid, 1)
    77. [19/5/2017 17:36:24]                         end
    78.  
    79. [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
    80. [19/5/2017 17:36:24]                                 doTeleportThing(cid, positions.kick)
    81. [19/5/2017 17:36:24]                                 doPlayerSetStorageValue(cid, storages.done, 1)
    82. [19/5/2017 17:36:24]                                 return true
    83. [19/5/2017 17:36:24]                         end
    84.  
    85. [19/5/2017 17:36:24]                         if getPlayerStorageValue(cid, itemEx.itemid) > 11 then
    86. [19/5/2017 17:36:24]                                 doSendMagicEffect(toPosition, CONST_ME_POFF)
    87. [19/5/2017 17:36:24]                                 return true
    88. [19/5/2017 17:36:24]                         end
    89.  
    90. [19/5/2017 17:36:24]                         if(math.random(100) <= 1) then
    91. [19/5/2017 17:36:24]                                 doPlayerSetStorageValue(cid, itemEx.uid, 12)
    92. [19/5/2017 17:36:25]                                 return true
    93. [19/5/2017 17:36:25]                         end
    94.  
    95.  
    96. [19/5/2017 17:36:25]                         if summons[get] then
    97. [19/5/2017 17:36:25]                                 for i = 1, #summons[get] do
    98. [19/5/2017 17:36:25]                                         doCreateMonster(summons[get][i], positions.summon[i])
    99. [19/5/2017 17:36:25]                                         doSendMagicEffect(positions.summon[i], CONST_ME_TELEPORT)
    100. [19/5/2017 17:36:25]                                 end
    101. [19/5/2017 17:36:25]                                         doSendMagicEffect(toPosition, CONST_ME_DRAWBLOOD)
    102. [19/5/2017 17:36:25]                                         doPlayerSetStorageValue(cid, itemEx.itemid, get + 1)
    103. [19/5/2017 17:36:25]                                 if math.random(100) >= 50 then
    104. [19/5/2017 17:36:25]                                         doCreatureAddHealth(cid, -300)
    105.  
    106. [19/5/2017 17:36:25]                                 end
    107. [19/5/2017 17:36:25]                         return
    108. [19/5/2017 17:36:25]                         end
    109. [19/5/2017 17:36:25]                 end
    110. [19/5/2017 17:36:25]        
    111. [19/5/2017 17:36:25] Description:
    112. [19/5/2017 17:36:26] (LuaInterface::luaDoCreateMonster) Cannot create monster: Elder Beholder
    113.  
    114. [19/5/2017 17:36:26] [Error - Action Interface]
    115. [19/5/2017 17:36:26] local cid = 268457744
    116. [19/5/2017 17:36:26] local item = {
    117. [19/5/2017 17:36:26] uniqueid = 79522,
    118. [19/5/2017 17:36:26] uid = 79522,
    119. [19/5/2017 17:36:26] itemid = 8293,
    120. [19/5/2017 17:36:26] id = 8293,
    121. [19/5/2017 17:36:26] type = 0,
    122. [19/5/2017 17:36:26] actionid = 0,
    123. [19/5/2017 17:36:26] aid = 0
    124. [19/5/2017 17:36:26] }
    125. [19/5/2017 17:36:26] local fromPosition = {
    126. [19/5/2017 17:36:26] x = 65535,
    127. [19/5/2017 17:36:26] y = 64,
    128. [19/5/2017 17:36:26] z = 1,
    129. [19/5/2017 17:36:26] stackpos = 1
    130. [19/5/2017 17:36:26] }
    131. [19/5/2017 17:36:26] local itemEx = {
    132. [19/5/2017 17:36:27] uniqueid = 79523,
    133. [19/5/2017 17:36:27] uid = 79523,
    134. [19/5/2017 17:36:27] itemid = 8289,
    135. [19/5/2017 17:36:27] id = 8289,
    136. [19/5/2017 17:36:27] type = 0,
    137. [19/5/2017 17:36:27] actionid = 0,
    138. [19/5/2017 17:36:27] aid = 0
    139. [19/5/2017 17:36:27] }
    140. [19/5/2017 17:36:27] local toPosition = {
    141. [19/5/2017 17:36:27] x = 851,
    142. [19/5/2017 17:36:27] y = 1118,
    143. [19/5/2017 17:36:27] z = 7,
    144. [19/5/2017 17:36:27] stackpos = 1
    145. [19/5/2017 17:36:27] }
    146. [19/5/2017 17:36:27] domodlib('demonOak_config')
    147.  
    148. [19/5/2017 17:36:27]                 if blockingTree[itemEx.itemid] and itemEx.uid == blockingTree[itemEx.itemid][1] then
    149.  
    150. [19/5/2017 17:36:27]                         local tree = toPosition
    151. [19/5/2017 17:36:28]                         if isInRange(tree, areaPosition[1], areaPosition[2]) then
    152. [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.")
    153. [19/5/2017 17:36:28]                                 doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, "Something is wrong, please contact a gamemaster.")
    154. [19/5/2017 17:36:28]                                 return
    155. [19/5/2017 17:36:28]                         end
    156.  
    157. [19/5/2017 17:36:28]                         if getPlayerLevel(cid) < level then
    158. [19/5/2017 17:36:28]                                 doPlayerSendCancel(cid, "Tu Necesitas Level " .. level .. " O Mas Para Entrar A Esta Quest.")
    159. [19/5/2017 17:36:28]                                 return true
    160. [19/5/2017 17:36:28]                         end
    161. [19/5/2017 17:36:28]                         if getPlayerStorageValue(cid, storages.done) > 0 then
    162. [19/5/2017 17:36:28]                                 doPlayerSendCancel(cid, "Tu Ya Has Hecho Esta Quest.")
    163. [19/5/2017 17:36:28]                                 return true
    164. [19/5/2017 17:36:28]                         end
    165. [19/5/2017 17:36:28]                         if getPlayerStorageValue(cid, storages.cutTree) > 0 then
    166. [19/5/2017 17:36:28]                                 return
    167. [19/5/2017 17:36:28]                         end
    168.  
    169. [19/5/2017 17:36:29]                         if onePerQuest then
    170. [19/5/2017 17:36:29]                                 local players = getPlayersOnline()
    171. [19/5/2017 17:36:29]                                 for _, pid in ipairs(players) do
    172. [19/5/2017 17:36:29]                                 if isInRange(getCreaturePosition(pid), areaPosition[1], areaPosition[2]) then
    173. [19/5/2017 17:36:29]                                         doPlayerSendCancel(cid, "Espera Que " .. getCreatureName(pid) .. " Finalize La Quest.")
    174. [19/5/2017 17:36:29]                                         return true
    175. [19/5/2017 17:36:29]                                 end
    176. [19/5/2017 17:36:29]                                 end
    177. [19/5/2017 17:36:29]                         end
    178.  
    179. [19/5/2017 17:36:29]                         doTransformItem(getThingFromPos(toPosition).uid, blockingTree[itemEx.itemid][2])
    180. [19/5/2017 17:36:29]                         doSendMagicEffect(toPosition, CONST_ME_POFF)
    181. [19/5/2017 17:36:29]                         doMoveCreature(cid, SOUTH)
    182. [19/5/2017 17:36:29]                         doPlayerSetStorageValue(cid, storages.cutTree, 1)
    183. [19/5/2017 17:36:29]                         return true
    184.  
    185. [19/5/2017 17:36:29]                 elseif isInArray(demonOak, itemEx.itemid) then
    186.  
    187. [19/5/2017 17:36:30]                         local get = getPlayerStorageValue(cid, itemEx.itemid)
    188. [19/5/2017 17:36:30]                         if get == -1 then
    189. [19/5/2017 17:36:30]                                 doPlayerSetStorageValue(cid, itemEx.itemid, 1)
    190. [19/5/2017 17:36:30]                         end
    191.  
    192. [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
    193. [19/5/2017 17:36:30]                                 doTeleportThing(cid, positions.kick)
    194. [19/5/2017 17:36:30]                                 doPlayerSetStorageValue(cid, storages.done, 1)
    195. [19/5/2017 17:36:30]                                 return true
    196. [19/5/2017 17:36:30]                         end
    197.  
    198. [19/5/2017 17:36:30]                         if getPlayerStorageValue(cid, itemEx.itemid) > 11 then
    199. [19/5/2017 17:36:30]                                 doSendMagicEffect(toPosition, CONST_ME_POFF)
    200. [19/5/2017 17:36:30]                                 return true
    201. [19/5/2017 17:36:30]                         end
    202.  
    203. [19/5/2017 17:36:30]                         if(math.random(100) <= 1) then
    204. [19/5/2017 17:36:30]                                 doPlayerSetStorageValue(cid, itemEx.uid, 12)
    205. [19/5/2017 17:36:31]                                 return true
    206. [19/5/2017 17:36:31]                         end
    207.  
    208.  
    209. [19/5/2017 17:36:31]                         if summons[get] then
    210. [19/5/2017 17:36:31]                                 for i = 1, #summons[get] do
    211. [19/5/2017 17:36:31]                                         doCreateMonster(summons[get][i], positions.summon[i])
    212. [19/5/2017 17:36:31]                                         doSendMagicEffect(positions.summon[i], CONST_ME_TELEPORT)
    213. [19/5/2017 17:36:31]                                 end
    214. [19/5/2017 17:36:31]                                         doSendMagicEffect(toPosition, CONST_ME_DRAWBLOOD)
    215. [19/5/2017 17:36:31]                                         doPlayerSetStorageValue(cid, itemEx.itemid, get + 1)
    216. [19/5/2017 17:36:31]                                 if math.random(100) >= 50 then
    217. [19/5/2017 17:36:31]                                         doCreatureAddHealth(cid, -300)
    218.  
    219. [19/5/2017 17:36:31]                                 end
    220. [19/5/2017 17:36:31]                         return
    221. [19/5/2017 17:36:31]                         end
    222. [19/5/2017 17:36:31]                 end
    223. [19/5/2017 17:36:32]        
    224. [19/5/2017 17:36:32] Description:
    225. [19/5/2017 17:36:32] (LuaInterface::luaDoCreateMonster) Cannot create monster: Betrayed Wraith
    226.  
    227. [19/5/2017 17:36:32] [Error - Action Interface]
    228. [19/5/2017 17:36:32] local cid = 268457744
    229. [19/5/2017 17:36:32] local item = {
    230. [19/5/2017 17:36:32] uniqueid = 79522,
    231. [19/5/2017 17:36:32] uid = 79522,
    232. [19/5/2017 17:36:32] itemid = 8293,
    233. [19/5/2017 17:36:32] id = 8293,
    234. [19/5/2017 17:36:32] type = 0,
    235. [19/5/2017 17:36:32] actionid = 0,
    236. [19/5/2017 17:36:32] aid = 0
    237. [19/5/2017 17:36:32] }
    238. [19/5/2017 17:36:32] local fromPosition = {
    239. [19/5/2017 17:36:33] x = 65535,
    240. [19/5/2017 17:36:33] y = 64,
    241. [19/5/2017 17:36:33] z = 1,
    242. [19/5/2017 17:36:33] stackpos = 1
    243. [19/5/2017 17:36:33] }
    244. [19/5/2017 17:36:33] local itemEx = {
    245. [19/5/2017 17:36:33] uniqueid = 79523,
    246. [19/5/2017 17:36:33] uid = 79523,
    247. [19/5/2017 17:36:33] itemid = 8289,
    248. [19/5/2017 17:36:33] id = 8289,
    249. [19/5/2017 17:36:33] type = 0,
    250. [19/5/2017 17:36:33] actionid = 0,
    251. [19/5/2017 17:36:33] aid = 0
    252. [19/5/2017 17:36:33] }
    253. [19/5/2017 17:36:33] local toPosition = {
    254. [19/5/2017 17:36:34] x = 851,
    255. [19/5/2017 17:36:34] y = 1118,
    256. [19/5/2017 17:36:34] z = 7,
    257. [19/5/2017 17:36:34] stackpos = 1
    258. [19/5/2017 17:36:34] }
    259. [19/5/2017 17:36:34] domodlib('demonOak_config')
    260.  
    261. [19/5/2017 17:36:34]                 if blockingTree[itemEx.itemid] and itemEx.uid == blockingTree[itemEx.itemid][1] then
    262.  
    263. [19/5/2017 17:36:34]                         local tree = toPosition
    264. [19/5/2017 17:36:34]                         if isInRange(tree, areaPosition[1], areaPosition[2]) then
    265. [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.")
    266. [19/5/2017 17:36:34]                                 doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, "Something is wrong, please contact a gamemaster.")
    267. [19/5/2017 17:36:34]                                 return
    268. [19/5/2017 17:36:34]                         end
    269.  
    270. [19/5/2017 17:36:34]                         if getPlayerLevel(cid) < level then
    271. [19/5/2017 17:36:35]                                 doPlayerSendCancel(cid, "Tu Necesitas Level " .. level .. " O Mas Para Entrar A Esta Quest.")
    272. [19/5/2017 17:36:35]                                 return true
    273. [19/5/2017 17:36:35]                         end
    274. [19/5/2017 17:36:35]                         if getPlayerStorageValue(cid, storages.done) > 0 then
    275. [19/5/2017 17:36:35]                                 doPlayerSendCancel(cid, "Tu Ya Has Hecho Esta Quest.")
    276. [19/5/2017 17:36:35]                                 return true
    277. [19/5/2017 17:36:35]                         end
    278. [19/5/2017 17:36:35]                         if getPlayerStorageValue(cid, storages.cutTree) > 0 then
    279. [19/5/2017 17:36:35]                                 return
    280. [19/5/2017 17:36:35]                         end
    281.  
    282. [19/5/2017 17:36:35]                         if onePerQuest then
    283. [19/5/2017 17:36:35]                                 local players = getPlayersOnline()
    284. [19/5/2017 17:36:35]                                 for _, pid in ipairs(players) do
    285. [19/5/2017 17:36:35]                                 if isInRange(getCreaturePosition(pid), areaPosition[1], areaPosition[2]) then
    286. [19/5/2017 17:36:35]                                         doPlayerSendCancel(cid, "Espera Que " .. getCreatureName(pid) .. " Finalize La Quest.")
    287. [19/5/2017 17:36:36]                                         return true
    288. [19/5/2017 17:36:36]                                 end
    289. [19/5/2017 17:36:36]                                 end
    290. [19/5/2017 17:36:36]                         end
    291.  
    292. [19/5/2017 17:36:36]                         doTransformItem(getThingFromPos(toPosition).uid, blockingTree[itemEx.itemid][2])
    293. [19/5/2017 17:36:36]                         doSendMagicEffect(toPosition, CONST_ME_POFF)
    294. [19/5/2017 17:36:36]                         doMoveCreature(cid, SOUTH)
    295. [19/5/2017 17:36:36]                         doPlayerSetStorageValue(cid, storages.cutTree, 1)
    296. [19/5/2017 17:36:36]                         return true
    297.  
    298. [19/5/2017 17:36:36]                 elseif isInArray(demonOak, itemEx.itemid) then
    299.  
    300. [19/5/2017 17:36:36]                         local get = getPlayerStorageValue(cid, itemEx.itemid)
    301. [19/5/2017 17:36:36]                         if get == -1 then
    302. [19/5/2017 17:36:36]                                 doPlayerSetStorageValue(cid, itemEx.itemid, 1)
    303. [19/5/2017 17:36:36]                         end
    304.  
    305. [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
    306. [19/5/2017 17:36:37]                                 doTeleportThing(cid, positions.kick)
    307. [19/5/2017 17:36:37]                                 doPlayerSetStorageValue(cid, storages.done, 1)
    308. [19/5/2017 17:36:37]                                 return true
    309. [19/5/2017 17:36:37]                         end
    310.  
    311. [19/5/2017 17:36:37]                         if getPlayerStorageValue(cid, itemEx.itemid) > 11 then
    312. [19/5/2017 17:36:37]                                 doSendMagicEffect(toPosition, CONST_ME_POFF)
    313. [19/5/2017 17:36:37]                                 return true
    314. [19/5/2017 17:36:37]                         end
    315.  
    316. [19/5/2017 17:36:37]                         if(math.random(100) <= 1) then
    317. [19/5/2017 17:36:37]                                 doPlayerSetStorageValue(cid, itemEx.uid, 12)
    318. [19/5/2017 17:36:37]                                 return true
    319. [19/5/2017 17:36:37]                         end
    320.  
    321.  
    322. [19/5/2017 17:36:37]                         if summons[get] then
    323. [19/5/2017 17:36:38]                                 for i = 1, #summons[get] do
    324. [19/5/2017 17:36:38]                                         doCreateMonster(summons[get][i], positions.summon[i])
    325. [19/5/2017 17:36:38]                                         doSendMagicEffect(positions.summon[i], CONST_ME_TELEPORT)
    326. [19/5/2017 17:36:38]                                 end
    327. [19/5/2017 17:36:38]                                         doSendMagicEffect(toPosition, CONST_ME_DRAWBLOOD)
    328. [19/5/2017 17:36:38]                                         doPlayerSetStorageValue(cid, itemEx.itemid, get + 1)
    329. [19/5/2017 17:36:38]                                 if math.random(100) >= 50 then
    330. [19/5/2017 17:36:38]                                         doCreatureAddHealth(cid, -300)
    331.  
    332. [19/5/2017 17:36:38]                                 end
    333. [19/5/2017 17:36:38]                         return
    334. [19/5/2017 17:36:38]                         end
    335. [19/5/2017 17:36:38]                 end
    336. [19/5/2017 17:36:38]        
    337. [19/5/2017 17:36:38] Description:
    338. [19/5/2017 17:36:38] (LuaInterface::luaDoCreateMonster) Cannot create monster: Demon Skeleton
    339.  
     
  10. Thorn

    Thorn Well-Known Member

    Joined:
    Sep 24, 2012
    Messages:
    1,791
    Likes Received:
    773
    Best Answers:
    0
    can anyone help me with this? :(
     

Share This Page

Loading...