Gidedin
New Member
- Joined
- May 16, 2013
- Messages
- 7
- Reaction score
- 0
Hello everyone.
I need some help using the doCreateMonster() function. Right now, I'm using it this way:
It works. But, if it is unable to create the monster ( Let's say there is a Fire Field in every 8 squares near the spawn pos ), it generates few errors on my Server Prompt. I already control the spawn position by defining when the error shows up and re-do the procedure, but those errors keep showing and that is annoying.
There is any way to change that? Control when the error shows?
I haven't tried
Because that just came to my mind and I'm not close to the server right now, but I still think the error will show up =(
I have tried
But it just failed until my failSafe broke the loop.
Another thing
Can someone tell me the exactly parameters used in the doCreateMonster function? I know that it is different from server to server, but I'm using one that, unfortunately, don't came with the Source Code. It is based on the 0.3.7 TFS.
Thank you and sorry if you can't understand it, still learning english.
If you want to reproduce the problem, do the command on a position where every field near it has any kind of field. Like, Fire or Eletric.
I need some help using the doCreateMonster() function. Right now, I'm using it this way:
Code:
cid = doCreateMonster( creatureName, selectecPos, false, false )
if cid then
[... CodeHere ...]
end
It works. But, if it is unable to create the monster ( Let's say there is a Fire Field in every 8 squares near the spawn pos ), it generates few errors on my Server Prompt. I already control the spawn position by defining when the error shows up and re-do the procedure, but those errors keep showing and that is annoying.
There is any way to change that? Control when the error shows?
I haven't tried
Code:
cid = doCreateMonster( creatureName, selectecPos, false, false ) or false
I have tried
Code:
if doCreateMonster( creatureName, selectecPos, false, false ) ~= LUA_ERROR then
Another thing
Can someone tell me the exactly parameters used in the doCreateMonster function? I know that it is different from server to server, but I'm using one that, unfortunately, don't came with the Source Code. It is based on the 0.3.7 TFS.
Thank you and sorry if you can't understand it, still learning english.
If you want to reproduce the problem, do the command on a position where every field near it has any kind of field. Like, Fire or Eletric.