Lua CreatureScripts error spam

Discussion in 'Support' started by XxdestroyerxX, Jul 17, 2017.

  1. XxdestroyerxX

    XxdestroyerxX Premium User Premium User

    Joined:
    Jan 25, 2009
    Messages:
    35
    Likes Received:
    0
    Best Answers:
    1
    @@EDIT
    Have done little research and now i know that it's fault of script idle.lua which kicks after specified amount of time is any possible solution on this? maybe before kick removing of onThink statement in my script? idk ;/




    Hello OTLanders i need your help ! I've scripts(3) which send magic effect each 1sec(?) everything is fine until there are some players online and few moments later(40min+-) client freezes players get kicked and in console i receive massive spam
    Error:
    Code (Text):
    1.  
    2. [17/7/2017 8:37:56] [Error - CreatureScript Interface]
    3. [17/7/2017 8:37:56] data/creaturescripts/scripts/ssjgodssj.lua:onThink
    4. [17/7/2017 8:37:56] Description:
    5. [17/7/2017 8:37:57] (internalGetPlayerInfo) Player not found when requesting player info #6
    6. (...)
    7. [17/7/2017 0:10:22] [Error - CreatureScript Interface]
    8. [17/7/2017 0:10:22] data/creaturescripts/scripts/effect.lua:onThink
    9. [17/7/2017 0:10:22] Description:
    10. [17/7/2017 0:10:22] (internalGetPlayerInfo) Player not found when requesting player info #6
    11. (...)
    12. [17/7/2017 0:10:32] [Error - CreatureScript Interface]
    13. [17/7/2017 0:10:32] data/creaturescripts/scripts/effereborn.lua:onThink
    14. [17/7/2017 0:10:32] Description:
    15. [17/7/2017 0:10:32] (internalGetPlayerInfo) Player not found when requesting player info #6
    16. (...)
    17.  
    one of script
    PHP:
    1.  
    2. local config =
    3. {
    4. storage = 31520,
    5. timee = 1, -- po jakim czasie zostaje wyswietlony efekt
    6. efekt1 = 106,
    7. efekt2 = 85,
    8. efekt3 = 109,
    9. efekt4 = 107,
    10. efekt5 = 87,
    11. efekt6 = 93,
    12. efekt7 = 84,
    13. efekt8 = 89,
    14. efekt9 = 100,
    15. efekt10 = 105,
    16. efekt11 = 98,
    17. }
    18. function onThink(cid, interval)
    19. if getPlayerVocation(cid) == 4 and exhaustion.get(cid, config.storage) == false then
    20. doSendMagicEffect(getPlayerPosition(cid),config.efekt1)
    21. exhaustion.set(cid,config.storage,config.timee)
    22.  
    23. elseif getPlayerVocation(cid) == 5 and exhaustion.get(cid, config.storage) == false then
    24. doSendMagicEffect(getPlayerPosition(cid),config.efekt2)
    25. exhaustion.set(cid,config.storage,config.timee)
    26.  
    27. elseif getPlayerVocation(cid) == 7 and exhaustion.get(cid, config.storage) == false then
    28. doSendMagicEffect(getPlayerPosition(cid),config.efekt2)
    29. exhaustion.set(cid,config.storage,config.timee)
    30.  
    31. elseif getPlayerVocation(cid) == 12 and exhaustion.get(cid, config.storage) == false then
    32. doSendMagicEffect(getPlayerPosition(cid),config.efekt2)
    33. exhaustion.set(cid,config.storage,config.timee)
    34.  
    35. elseif getPlayerVocation(cid) == 13 and exhaustion.get(cid, config.storage) == false then
    36. doSendMagicEffect(getPlayerPosition(cid),config.efekt1)
    37. exhaustion.set(cid,config.storage,config.timee)
    38.  
    39. elseif getPlayerVocation(cid) == 14 and exhaustion.get(cid, config.storage) == false then
    40. doSendMagicEffect(getPlayerPosition(cid),config.efekt2)
    41. exhaustion.set(cid,config.storage,config.timee)
    42.  
    43. elseif getPlayerVocation(cid) == 17 and exhaustion.get(cid, config.storage) == false then
    44. doSendMagicEffect(getPlayerPosition(cid),config.efekt3)
    45. exhaustion.set(cid,config.storage,config.timee)
    46.  
    47. elseif getPlayerVocation(cid) == 18 and exhaustion.get(cid, config.storage) == false then
    48. doSendMagicEffect(getPlayerPosition(cid),config.efekt4)
    49. exhaustion.set(cid,config.storage,config.timee)
    50.  
    51. elseif getPlayerVocation(cid) == 24 and exhaustion.get(cid, config.storage) == false then
    52. doSendMagicEffect(getPlayerPosition(cid),config.efekt5)
    53. exhaustion.set(cid,config.storage,config.timee)
    54.  
    55. elseif getPlayerVocation(cid) == 28 and exhaustion.get(cid, config.storage) == false then
    56. doSendMagicEffect(getPlayerPosition(cid),config.efekt1)
    57. exhaustion.set(cid,config.storage,config.timee)
    58.  
    59. elseif getPlayerVocation(cid) == 36 and exhaustion.get(cid, config.storage) == false then
    60. doSendMagicEffect(getPlayerPosition(cid),config.efekt2)
    61. exhaustion.set(cid,config.storage,config.timee)
    62.  
    63. elseif getPlayerVocation(cid) == 61 and exhaustion.get(cid, config.storage) == false then
    64. doSendMagicEffect(getPlayerPosition(cid),config.efekt2)
    65. exhaustion.set(cid,config.storage,config.timee)
    66.  
    67. elseif getPlayerVocation(cid) == 77 and exhaustion.get(cid, config.storage) == false then
    68. doSendMagicEffect(getPlayerPosition(cid),config.efekt1)
    69. exhaustion.set(cid,config.storage,config.timee)
    70.  
    71. elseif getPlayerVocation(cid) == 78 and exhaustion.get(cid, config.storage) == false then
    72. doSendMagicEffect(getPlayerPosition(cid),config.efekt2)
    73. exhaustion.set(cid,config.storage,config.timee)
    74.  
    75. elseif getPlayerVocation(cid) == 84 and exhaustion.get(cid, config.storage) == false then
    76. doSendMagicEffect(getPlayerPosition(cid),config.efekt1)
    77. exhaustion.set(cid,config.storage,config.timee)
    78.  
    79. elseif getPlayerVocation(cid) == 85 and exhaustion.get(cid, config.storage) == false then
    80. doSendMagicEffect(getPlayerPosition(cid),config.efekt2)
    81. exhaustion.set(cid,config.storage,config.timee)
    82.  
    83. elseif getPlayerVocation(cid) == 98 and exhaustion.get(cid, config.storage) == false then
    84. doSendMagicEffect(getPlayerPosition(cid),config.efekt7)
    85. exhaustion.set(cid,config.storage,config.timee)
    86.  
    87. elseif getPlayerVocation(cid) == 99 and exhaustion.get(cid, config.storage) == false then
    88. doSendMagicEffect(getPlayerPosition(cid),config.efekt5)
    89. exhaustion.set(cid,config.storage,config.timee)
    90.  
    91. elseif getPlayerVocation(cid) == 100 and exhaustion.get(cid, config.storage) == false then
    92. doSendMagicEffect(getPlayerPosition(cid),config.efekt7)
    93. exhaustion.set(cid,config.storage,config.timee)
    94.  
    95. elseif getPlayerVocation(cid) == 101 and exhaustion.get(cid, config.storage) == false then
    96. doSendMagicEffect(getPlayerPosition(cid),config.efekt7)
    97. exhaustion.set(cid,config.storage,config.timee)
    98.  
    99. elseif getPlayerVocation(cid) == 107 and exhaustion.get(cid, config.storage) == false then
    100. doSendMagicEffect(getPlayerPosition(cid),config.efekt2)
    101. exhaustion.set(cid,config.storage,config.timee)
    102.  
    103. elseif getPlayerVocation(cid) == 117 and exhaustion.get(cid, config.storage) == false then
    104. doSendMagicEffect(getPlayerPosition(cid),config.efekt5)
    105. exhaustion.set(cid,config.storage,config.timee)
    106.  
    107. elseif getPlayerVocation(cid) == 130 and exhaustion.get(cid, config.storage) == false then
    108. doSendMagicEffect(getPlayerPosition(cid),config.efekt4)
    109. exhaustion.set(cid,config.storage,config.timee)
    110.  
    111. elseif getPlayerVocation(cid) == 131 and exhaustion.get(cid, config.storage) == false then
    112. doSendMagicEffect(getPlayerPosition(cid),config.efekt4)
    113. exhaustion.set(cid,config.storage,config.timee)
    114.  
    115. elseif getPlayerVocation(cid) == 142 and exhaustion.get(cid, config.storage) == false then
    116. doSendMagicEffect(getPlayerPosition(cid),config.efekt2)
    117. exhaustion.set(cid,config.storage,config.timee)
    118.  
    119. elseif getPlayerVocation(cid) == 147 and exhaustion.get(cid, config.storage) == false then
    120. doSendMagicEffect(getPlayerPosition(cid),config.efekt1)
    121. exhaustion.set(cid,config.storage,config.timee)
    122.  
    123. elseif getPlayerVocation(cid) == 151 and exhaustion.get(cid, config.storage) == false then
    124. doSendMagicEffect(getPlayerPosition(cid),config.efekt2)
    125. exhaustion.set(cid,config.storage,config.timee)
    126.  
    127. elseif getPlayerVocation(cid) == 152 and exhaustion.get(cid, config.storage) == false then
    128. doSendMagicEffect(getPlayerPosition(cid),config.efekt2)
    129. exhaustion.set(cid,config.storage,config.timee)
    130.  
    131. elseif getPlayerVocation(cid) == 157 and exhaustion.get(cid, config.storage) == false then
    132. doSendMagicEffect(getPlayerPosition(cid),config.efekt5)
    133. exhaustion.set(cid,config.storage,config.timee)
    134.  
    135. elseif getPlayerVocation(cid) == 162 and exhaustion.get(cid, config.storage) == false then
    136. doSendMagicEffect(getPlayerPosition(cid),config.efekt8)
    137. exhaustion.set(cid,config.storage,config.timee)
    138.  
    139. elseif getPlayerVocation(cid) == 165 and exhaustion.get(cid, config.storage) == false then
    140. doSendMagicEffect(getPlayerPosition(cid),config.efekt1)
    141. exhaustion.set(cid,config.storage,config.timee)
    142.  
    143. elseif getPlayerVocation(cid) == 167 and exhaustion.get(cid, config.storage) == false then
    144. doSendMagicEffect(getPlayerPosition(cid),config.efekt2)
    145. exhaustion.set(cid,config.storage,config.timee)
    146.  
    147. elseif getPlayerVocation(cid) == 172 and exhaustion.get(cid, config.storage) == false then
    148. doSendMagicEffect(getPlayerPosition(cid),config.efekt7)
    149. exhaustion.set(cid,config.storage,config.timee)
    150.  
    151. elseif getPlayerVocation(cid) == 181 and exhaustion.get(cid, config.storage) == false then
    152. doSendMagicEffect(getPlayerPosition(cid),config.efekt1)
    153. exhaustion.set(cid,config.storage,config.timee)
    154.  
    155. elseif getPlayerVocation(cid) == 182 and exhaustion.get(cid, config.storage) == false then
    156. doSendMagicEffect(getPlayerPosition(cid),config.efekt2)
    157. exhaustion.set(cid,config.storage,config.timee)
    158.  
    159. elseif getPlayerVocation(cid) == 187 and exhaustion.get(cid, config.storage) == false then
    160. doSendMagicEffect(getPlayerPosition(cid),config.efekt2)
    161. exhaustion.set(cid,config.storage,config.timee)
    162.  
    163. elseif getPlayerVocation(cid) == 196 and exhaustion.get(cid, config.storage) == false then
    164. doSendMagicEffect(getPlayerPosition(cid),config.efekt1)
    165. exhaustion.set(cid,config.storage,config.timee)
    166.  
    167. elseif getPlayerVocation(cid) == 197 and exhaustion.get(cid, config.storage) == false then
    168. doSendMagicEffect(getPlayerPosition(cid),config.efekt9)
    169. exhaustion.set(cid,config.storage,config.timee)
    170.  
    171. elseif getPlayerVocation(cid) == 201 and exhaustion.get(cid, config.storage) == false then
    172. doSendMagicEffect(getPlayerPosition(cid),config.efekt1)
    173. exhaustion.set(cid,config.storage,config.timee)
    174. elseif getPlayerVocation(cid) == 202 and exhaustion.get(cid, config.storage) == false then
    175. doSendMagicEffect(getPlayerPosition(cid),config.efekt8)
    176. exhaustion.set(cid,config.storage,config.timee)
    177.  
    178. elseif getPlayerVocation(cid) == 207 and exhaustion.get(cid, config.storage) == false then
    179. doSendMagicEffect(getPlayerPosition(cid),config.efekt10)
    180. exhaustion.set(cid,config.storage,config.timee)
    181. ---------Rb------
    182. elseif getPlayerVocation(cid) == 36 and exhaustion.get(cid, config.storage) == false then
    183. doSendMagicEffect(getPlayerPosition(cid),config.efekt2)
    184. exhaustion.set(cid,config.storage,config.timee)
    185. elseif getPlayerVocation(cid) == 37 and exhaustion.get(cid, config.storage) == false then
    186. doSendMagicEffect(getPlayerPosition(cid),config.efekt2)
    187. exhaustion.set(cid,config.storage,config.timee)
    188. elseif getPlayerVocation(cid) == 61 and exhaustion.get(cid, config.storage) == false then
    189. doSendMagicEffect(getPlayerPosition(cid),config.efekt1)
    190. exhaustion.set(cid,config.storage,config.timee)
    191. elseif getPlayerVocation(cid) == 65 and exhaustion.get(cid, config.storage) == false then
    192. doSendMagicEffect(getPlayerPosition(cid),config.efekt5)
    193. exhaustion.set(cid,config.storage,config.timee)
    194. elseif getPlayerVocation(cid) == 84 and exhaustion.get(cid, config.storage) == false then
    195. doSendMagicEffect(getPlayerPosition(cid),config.efekt1)
    196. exhaustion.set(cid,config.storage,config.timee)
    197. elseif getPlayerVocation(cid) == 99 and exhaustion.get(cid, config.storage) == false then
    198. doSendMagicEffect(getPlayerPosition(cid),config.efekt1)
    199. exhaustion.set(cid,config.storage,config.timee)
    200. elseif getPlayerVocation(cid) == 101 and exhaustion.get(cid, config.storage) == false then
    201. doSendMagicEffect(getPlayerPosition(cid),config.efekt3)
    202. exhaustion.set(cid,config.storage,config.timee)
    203. elseif getPlayerVocation(cid) == 110 and exhaustion.get(cid, config.storage) == false then
    204. doSendMagicEffect(getPlayerPosition(cid),config.efekt1)
    205. exhaustion.set(cid,config.storage,config.timee)
    206. elseif getPlayerVocation(cid) == 137 and exhaustion.get(cid, config.storage) == false then
    207. doSendMagicEffect(getPlayerPosition(cid),config.efekt2)
    208. exhaustion.set(cid,config.storage,config.timee)
    209. elseif getPlayerVocation(cid) == 66 and exhaustion.get(cid, config.storage) == false then
    210. doSendMagicEffect(getPlayerPosition(cid),config.efekt1)
    211. exhaustion.set(cid,config.storage,config.timee)
    212. elseif getPlayerVocation(cid) == 67 and exhaustion.get(cid, config.storage) == false then
    213. doSendMagicEffect(getPlayerPosition(cid),config.efekt1)
    214. exhaustion.set(cid,config.storage,config.timee)
    215. elseif getPlayerVocation(cid) == 141 and exhaustion.get(cid, config.storage) == false then
    216. doSendMagicEffect(getPlayerPosition(cid),config.efekt1)
    217. exhaustion.set(cid,config.storage,config.timee)
    218. elseif getPlayerVocation(cid) == 143 and exhaustion.get(cid, config.storage) == false then
    219. doSendMagicEffect(getPlayerPosition(cid),config.efekt1)
    220. exhaustion.set(cid,config.storage,config.timee)
    221. elseif getPlayerVocation(cid) == 160 and exhaustion.get(cid, config.storage) == false then
    222. doSendMagicEffect(getPlayerPosition(cid),config.efekt1)
    223. exhaustion.set(cid,config.storage,config.timee)
    224. elseif getPlayerVocation(cid) == 164 and exhaustion.get(cid, config.storage) == false then
    225. doSendMagicEffect(getPlayerPosition(cid),config.efekt1)
    226. exhaustion.set(cid,config.storage,config.timee)
    227. elseif getPlayerVocation(cid) == 176 and exhaustion.get(cid, config.storage) == false then
    228. doSendMagicEffect(getPlayerPosition(cid),config.efekt4)
    229. exhaustion.set(cid,config.storage,config.timee)
    230.  
    231.  
    232. elseif getPlayerVocation(cid) == 191 and exhaustion.get(cid, config.storage) == false then
    233. doSendMagicEffect(getPlayerPosition(cid),config.efekt1)
    234. exhaustion.set(cid,config.storage,config.timee)
    235. elseif getPlayerVocation(cid) == 192 and exhaustion.get(cid, config.storage) == false then
    236. doSendMagicEffect(getPlayerPosition(cid),config.efekt11)
    237. exhaustion.set(cid,config.storage,config.timee)
    238. return true
    239.  
     
    Last edited: Jul 17, 2017
  2. Best Answer:
    Post #4 by Xikini, Jul 17, 2017
  3. Thexamx

    Thexamx worst coder

    Joined:
    Sep 7, 2015
    Messages:
    1,115
    Likes Received:
    255
    Best Answers:
    12
  4. XxdestroyerxX

    XxdestroyerxX Premium User Premium User

    Joined:
    Jan 25, 2009
    Messages:
    35
    Likes Received:
    0
    Best Answers:
    1
    when i get kicked by script idle.lua script effect,effereborn,ssjgodssj loses focus on player which have been kicked and gives those errors from Upper post and kicks all players not only one solution?
    SEVER: tfs 0.4.3777 8.6
     
  5. Xikini

    Xikini Titan Kingdoms

    Joined:
    Nov 17, 2010
    Messages:
    3,007
    Likes Received:
    1,537
    Best Answers:
    33
    Best Answer
    Try this.
    Idk why the script even runs when a player logs out though.
    Code (Text):
    1. .
    2. .
    3. .
    4. function onThink(cid, interval)
    5.     if not isPlayer(cid) then
    6.         return true
    7.     end
    8. .
    9. .
    10. .
     
    XxdestroyerxX likes this.
  6. XxdestroyerxX

    XxdestroyerxX Premium User Premium User

    Joined:
    Jan 25, 2009
    Messages:
    35
    Likes Received:
    0
    Best Answers:
    1
    OK! now it's working THANK YOU!
     

Share This Page

Loading...