OldXar
Member
- Joined
- Feb 17, 2009
- Messages
- 215
- Reaction score
- 6
I've been looking on the forum and google to find this but I can't seem to gather any information about this issue.
When I'm using the spell utevo res "fire elemental (this problem is with any creature btw) my summons follow and attack like they are supposed to. When the summon gets killed the sprite remains on the same spot with no health bar.
The only thing I can think about is that it's a login issue, as soon as the player relogs that creature will die as it should.
I can't find the spell because this is the only spell that doesn't have a script in spells/scripts but a function. I've also tried looking for that function but I can't find it under lib/050-function.lua
I'm using TFS 0.3.6pl1 for 8.54
Spells.xml
Login.lua
Furthermore, I'm not receiving any errors in my console.
Kind Regards,
When I'm using the spell utevo res "fire elemental (this problem is with any creature btw) my summons follow and attack like they are supposed to. When the summon gets killed the sprite remains on the same spot with no health bar.
The only thing I can think about is that it's a login issue, as soon as the player relogs that creature will die as it should.
I can't find the spell because this is the only spell that doesn't have a script in spells/scripts but a function. I've also tried looking for that function but I can't find it under lib/050-function.lua
I'm using TFS 0.3.6pl1 for 8.54
Spells.xml
XML:
<instant name="Summon Creature" words="utevo res" lvl="25" params="1" exhaustion="2000" needlearn="0" event="function" value="summonMonster">
<vocation id="1"/>
<vocation id="2"/>
<vocation id="5"/>
<vocation id="6"/>
</instant>
Login.lua
LUA:
local config = {
loginMessage = getConfigValue('loginMessage'),
useFragHandler = getBooleanFromString(getConfigValue('useFragHandler'))
}
function onLogin(cid)
local loss = getConfigValue('deathLostPercent')
if(loss ~= nil) then
doPlayerSetLossPercent(cid, PLAYERLOSS_EXPERIENCE, loss * 10)
end
local accountManager = getPlayerAccountManager(cid)
if(accountManager == MANAGER_NONE) then
local lastLogin, str = getPlayerLastLoginSaved(cid), config.loginMessage
if(lastLogin > 0) then
doPlayerSendTextMessage(cid, MESSAGE_STATUS_DEFAULT, str)
str = "Your last visit was on " .. os.date("%a %b %d %X %Y", lastLogin) .. "."
else
str = str .. " Please choose your outfit."
doPlayerSendOutfitWindow(cid)
end
doPlayerSendTextMessage(cid, MESSAGE_STATUS_DEFAULT, str)
elseif(accountManager == MANAGER_NAMELOCK) then
doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_ORANGE, "Hello, it appears that your character has been namelocked, what would you like as your new name?")
elseif(accountManager == MANAGER_ACCOUNT) then
doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_ORANGE, "Hello, type 'account' to manage your account and if you want to start over then type 'cancel'.")
else
doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_ORANGE, "Hello, type 'account' to create an account or type 'recover' to recover an account.")
end
if(not isPlayerGhost(cid)) then
doSendMagicEffect(getCreaturePosition(cid), CONST_ME_TELEPORT)
end
registerCreatureEvent(cid, "Mail")
registerCreatureEvent(cid, "GuildMotd")
registerCreatureEvent(cid, "Idle")
if(config.useFragHandler) then
registerCreatureEvent(cid, "SkullCheck")
end
registerCreatureEvent(cid, "ReportBug")
registerCreatureEvent(cid, "AdvanceSave")
return true
end
Furthermore, I'm not receiving any errors in my console.
Kind Regards,
Last edited: