Advertisement
Guest User

Untitled

a guest
Sep 22nd, 2017
54
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.83 KB | None | 0 0
  1. #
  2. Error with npc system. ShopModule.onBuy
  3.  
  4. This is the error msg that comes in console.
  5. Code:
  6.  
  7. [Warning - Markwin] NpcSystem:
  8. ShopModule.onBuy - Item not found on shopItems list
  9.  
  10. I find this error msg confusing, since the npc doesn't sell anything as you can see from these scripts.
  11. Lua Code:
  12.  
  13. <?xml version="1.0" encoding="UTF-8"?>
  14. <npc name="Markwin" script="data/npc/scripts/Markwin.lua" walkinterval="2000" floorchange="0">
  15. <health now="100" max="100"/>
  16. <look type="23" head="0" body="0" legs="0" feet="0" addons="0"/>
  17. </npc>
  18.  
  19. Lua Code:
  20.  
  21. local keywordHandler = KeywordHandler:new()
  22. local npcHandler = NpcHandler:new(keywordHandler)
  23. NpcSystem.parseParameters(npcHandler)
  24.  
  25. function onCreatureAppear(cid) npcHandler:onCreatureAppear(cid) end
  26. function onCreatureDisappear(cid) npcHandler:onCreatureDisappear(cid) end
  27. function onCreatureSay(cid, type, msg) npcHandler:onCreatureSay(cid, type, msg) end
  28. function onThink() npcHandler:onThink() end
  29.  
  30. npcHandler:addModule(FocusModule:new())
  31.  
  32. I use TFS 04, Rev 3884
  33.  
  34. Does anyone have a clue as to what this might be? The console is spammed with different npc who have these errors, and none of the sells anything.
  35.  
  36. Posted this here since someone just made me aware that it's forbidden in the regular support forum to ask for TFS 04 support =)
  37.  
  38. * Like
  39.  
  40. Quick reply to this message Reply Reply With Quote Reply With Quote Multi-Quote This Message
  41. #
  42. 5th July 2011 13:49 #2
  43. Siramix
  44.  
  45. * View Profile
  46. * View Forum Posts
  47. * Private Message
  48. * View Blog Entries
  49. * View Articles
  50. * Add as Contact
  51. * Send Email
  52.  
  53. мммммммм.... Siramix's Avatar
  54.  
  55. Join Date
  56. Jan 2010
  57. Location
  58. Europe
  59. Posts
  60. 2,131
  61. Blog Entries
  62. 4
  63. Reputation
  64. Siramix has disabled reputation
  65. Status
  66. Siramix is offline
  67.  
  68. Send a message via MSN to Siramix Send a message via Skype™ to Siramix
  69.  
  70. As I said in the regular support board, you will have to change NPC lib folder with another one that fits thunderion datapack. Find it in the thunderion release thread
  71.  
  72. * Like
  73.  
  74. 'Botters are not players...' a quote by a Tibian player.
  75. Siramix's Mapping School - VISIT AND LEARN!
  76.  
  77. Quick reply to this message Reply Reply With Quote Reply With Quote Multi-Quote This Message
  78. #
  79. 5th July 2011 15:41 #3
  80. Kyran
  81.  
  82. * View Profile
  83. * View Forum Posts
  84. * Private Message
  85. * View Blog Entries
  86. * View Articles
  87. * Add as Contact
  88.  
  89. Premium User
  90.  
  91. Join Date
  92. Jan 2009
  93. Posts
  94. 43
  95. Reputation
  96. Kyran is on a distinguished road
  97. Status
  98. Kyran is offline
  99.  
  100. Thank you. I'll try that
  101.  
  102. * Like
  103.  
  104. Quick reply to this message Reply Reply With Quote Reply With Quote Multi-Quote This Message
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement