• 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!
  • 2026 staff recruitment is open! Check it out and consider applying!

doCreateCustomMonster(name, pos, outfit, health, spells, corpse, distance,experience)

Oskar1121

Excellent OT User
Joined
Jul 15, 2009
Messages
699
Reaction score
706
Location
Poland
Link to the topic:
http://otland.net/f35/create-custom-monster-lua-script-custow-name-hp-exp-outfit-spells-113960/
And error when using the function:
PHP:
[28/02/2011 20:26:02] [Error - TalkAction Interface] 
[28/02/2011 20:26:02] data/talkactions/scripts/moje/test.lua:onSay
[28/02/2011 20:26:02] Description: 
[28/02/2011 20:26:02] data/talkactions/scripts/moje/test.lua:61: attempt to call global 'doCreateCustomMonster' (a nil value)
[28/02/2011 20:26:02] stack traceback:
[28/02/2011 20:26:02]     data/talkactions/scripts/moje/test.lua:61: in function <data/talkactions/scripts/moje/test.lua:36>

Somebody know what's wrong?
 
are you sure you did everything properly? of course not, thats why doCreateCustomMonster isn't known lua function

MeNi forgot to add line binding function to lua(or registering or whatever, search for register in luascript.cpp and try)
 
Back
Top