• 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!

[doSummonCreature] Crash!

slaw

Software Developer
Joined
Aug 27, 2007
Messages
3,681
Solutions
126
Reaction score
1,119
Location
Germany
GitHub
slawkens
I'm making arena at this moment for my server (i think i'll relase it)

But i have problem, TFS crash when i using this:
Code:
 positionmonster = {x = 590, y = 662, z = 7}
doSummonCreature(Rotworm, positionmonster)

I don't understand why server crash when try to use it :|

I have searched many scripts, and all scripters use this function to create monster - doSummonCreature(name, position)

My position is good.

Meybe its error in TFS? Or i'm using it wrong..
 
Last edited:
Ok, problem fixed.

I added '' in monster name, and stackpos, i don't know what was needed but now it not crash.

Code:
positionmonster = {x = 590, y = 662, z = 7, stackpos = 253}
doSummonCreature('Rotworm', positionmonster)

I think better will be when server will msg error in console when is wrong script, but not crash =\
 
Ok, problem fixed.

I added '' in monster name, and stackpos, i don't know what was needed but now it not crash.

Code:
positionmonster = {x = 590, y = 662, z = 7, stackpos = 253}
doSummonCreature('Rotworm', positionmonster)

I think better will be when server will msg error in console when is wrong script, but not crash =\

Quotes were needed, since Rotworm is a string, so it has to come in quotes :mad:
 
Back
Top