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

There is something wrong with my monsters that use summon

treask

New Member
Joined
Jul 3, 2012
Messages
13
Reaction score
0
Location
Sweden
hello,

When i kill a monster that use the spell summon the server crashes! If i kill as admin and the monster dosent use the spell then nothing happens but if it summons something and i then kill it it crashes! Any ideas?

<summons maxSummons="3">
<summon name="Demon" interval="3000" chance="12" max="3" />
</summons>

in the ferumbras.xml
 
All monsters ingame that use spell summon crashes the server if they spawned a monster before they die! (i am using TFS 1.3)
Here is one example of a monsters summon script!
local combat = Combat()
combat:setParameter(COMBAT_PARAM_TYPE, COMBAT_NONE)
combat:setParameter(COMBAT_PARAM_EFFECT, CONST_ME_SOUND_WHITE)

local area = createCombatArea(AREA_SQUARE1X1)
combat:setArea(area)

local maxsummons = 2

function onCastSpell(creature, var)
local summoncount = creature:getSummons()
if #summoncount < 2 then
for i = 1, maxsummons - #summoncount do
local mid = Game.createMonster("War Wolf", creature:getPosition())
if not mid then
return
end
mid:setMaster(creature)
end
end
return combat:execute(creature, var)
end
 
hello,

When i kill a monster that use the spell summon the server crashes! If i kill as admin and the monster dosent use the spell then nothing happens but if it summons something and i then kill it it crashes! Any ideas?

<summons maxSummons="3">
<summon name="Demon" interval="3000" chance="12" max="3" />
</summons>

in the ferumbras.xml
Good that you included more information. Also add info about what server you are using (o.2? 0.3?) I hope someone can help

Also use code tags, ppl really do like that..

Lua:
 local combat = Combat()
combat:setParameter(COMBAT_PARAM_TYPE, COMBAT_NONE)
combat:setParameter(COMBAT_PARAM_EFFECT, CONST_ME_SOUND_WHITE)

local area = createCombatArea(AREA_SQUARE1X1)
combat:setArea(area)

local maxsummons = 2

function onCastSpell(creature, var)
local summoncount = creature:getSummons()
if #summoncount < 2 then
for i = 1, maxsummons - #summoncount do
local mid = Game.createMonster("War Wolf", creature:getPosition())
if not mid then
return
end
mid:setMaster(creature)
end
end
return combat:execute(creature, var)
end
 
Good that you included more information. Also add info about what server you are using (o.2? 0.3?) I hope someone can help

Also use code tags, ppl really do like that..

Lua:
 local combat = Combat()
combat:setParameter(COMBAT_PARAM_TYPE, COMBAT_NONE)
combat:setParameter(COMBAT_PARAM_EFFECT, CONST_ME_SOUND_WHITE)

local area = createCombatArea(AREA_SQUARE1X1)
combat:setArea(area)

local maxsummons = 2

function onCastSpell(creature, var)
local summoncount = creature:getSummons()
if #summoncount < 2 then
for i = 1, maxsummons - #summoncount do
local mid = Game.createMonster("War Wolf", creature:getPosition())
if not mid then
return
end
mid:setMaster(creature)
end
end
return combat:execute(creature, var)
end

Where do i find out the server info? I just started doing som otservers again, use to do long time ago but can't remember to much or stuff have changed to much!
And also, how do i add code tags? hehe
 
Where do i find out the server info? I just started doing som otservers again, use to do long time ago but can't remember to much or stuff have changed to much!
And also, how do i add code tags? hehe
It looks like 0.2 to me, because I'm not familiar with these kind of scripts. You use code tags by putting like this (but spell "code" correctly)... [cobe=lua] paste code here [/cobe] OR [cobe] paste code here [/cobe] XML also works, php, etc.

Don't let me get u off your topic. Give all the info u can.
 
Yeah im not sure what more info i can give, this is all that i know! Can't find any more !
Thanks i will remember to use that when adding code in the future!
 
Back
Top