condition:setParameter(CONDITION_PARAM_SHOWICON, true)
local combat = Combat()
combat:setParameter(COMBAT_PARAM_EFFECT, CONST_ME_MAGIC_GREEN)
combat:setParameter(COMBAT_PARAM_AGGRESSIVE, false)
local condition = Condition(CONDITION_HASTE)
condition:setParameter(CONDITION_PARAM_TICKS, 33000)
condition:setFormula(0.3, -24, 0.3, -24)
combat:addCondition(condition)
function onCastSpell(creature, variant)
return combat:execute(creature, variant)
end
attempt to call method 'addCondition' <a nil value>Not sure whats the question but..
forgottenserver/data/spells/scripts/support/haste.lua at master · otland/forgottenserver
A free and open-source MMORPG server emulator written in C++ - forgottenserver/data/spells/scripts/support/haste.lua at master · otland/forgottenservergithub.com
Code:local combat = Combat() combat:setParameter(COMBAT_PARAM_EFFECT, CONST_ME_MAGIC_GREEN) combat:setParameter(COMBAT_PARAM_AGGRESSIVE, false) local condition = Condition(CONDITION_HASTE) condition:setParameter(CONDITION_PARAM_TICKS, 33000) condition:setFormula(0.3, -24, 0.3, -24) combat:addCondition(condition) function onCastSpell(creature, variant) return combat:execute(creature, variant) end
bumpattempt to call method 'addCondition' <a nil value>
bump
combat:setCondition(condition)
It doesnt add haste symbol tho.instead of addCondition use this:
Lua:combat:setCondition(condition)
It doesnt add haste symbol tho.
You mean default 8.6 client without pic changes or what?Does normal client show haste symbol?
Yes downgraded by ninja.TFS 1.2 doesnt support 8.6 so you are using a modified TFS?
Yes downgraded by ninja.
Cant since it would require to change dat spr files, change town id, change otb,spawn, items,xml, create new account, create new vocation, and it still crashed client. Anyway it should work since it just different looking images so 110% its not client sided problem.try downloading fresh 8.6 client and see what happens, do not modify any files when you do this
Cant since it would require to change dat spr files, change town id, change otb,spawn, items,xml, create new account, create new vocation, and it still crashed client. Anyway it should work since it just different looking images so 110% its not client sided problem.
Tried crashed client without even logging in. Even if it works with default client how would you solve it then?you are trying to retrieve a sprite from certain coordinates from one of the files in the client folder.
You do not have to create new vocations, spawn or change the town id.
make a backup of your items.xml and otb and download the ones from ninja's repository on github and it should work just fine with vanilla client
How original tibia haste symbol looks like since i never played simple tibia i always played on naruto servers so i dont know how originally it should look likewe don't know if it's the client's issue but.. if it was -- you said you changed the tibia.pic file so I would suggest that you check the image resolution is the same as original and that the haste icon is in the same position
Who knows maybemaybe there is something wrong with that 8.0 downgrade. I will try to downgrade actual tfs one of these days