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

[8.0] - TFS 1.2

@krejken
sd script
Code:
local combat = createCombatObject()
setCombatParam(combat, COMBAT_PARAM_TYPE, COMBAT_PHYSICALDAMAGE)
setCombatParam(combat, COMBAT_PARAM_EFFECT, CONST_ME_MORTAREA)
setCombatParam(combat, COMBAT_PARAM_DISTANCEEFFECT, CONST_ANI_DEATH)
function onGetFormulaValues(cid, level, maglevel)
    min = -(level * 3.88 + maglevel * 4.60)
    max = -(level * 4.24 + maglevel * 5.34)
    return min, max
end

setCombatCallback(combat, CALLBACK_PARAM_LEVELMAGICVALUE, "onGetFormulaValues")

function onCastSpell(cid, var, isHotkey)
    if Tile(var:getPosition()):getTopCreature() then
        return doCombat(cid, combat, var)
    end

    doPlayerSendTextMessage("You can only use this rune on creatures.")
    player:getPosition():sendMagicEffect(CONST_ME_POFF)
    return false
end

@celohere
Those shield works now aginast monsters, but i feel like it dosent work with paladin damage (spear, royal spear, enchanted spear, assassin star) and same with knight weapons. Didnt you fix player damage against other player with shield?
 
Last edited:
@celohere
Those shield works now aginast monsters, but i feel like it dosent work with paladin damage (spear, royal spear, enchanted spear, assassin star) and same with knight weapons. Didnt you fix player damage against other player with shield?
Send me a video comparing the damage with and without a shield
 
no erorrs in console but still not working. Just the mesage "You can only use this rune on creatures."
Post automatically merged:

@krejken
sd script
Code:
local combat = createCombatObject()
setCombatParam(combat, COMBAT_PARAM_TYPE, COMBAT_PHYSICALDAMAGE)
setCombatParam(combat, COMBAT_PARAM_EFFECT, CONST_ME_MORTAREA)
setCombatParam(combat, COMBAT_PARAM_DISTANCEEFFECT, CONST_ANI_DEATH)
function onGetFormulaValues(cid, level, maglevel)
    min = -(level * 3.88 + maglevel * 4.60)
    max = -(level * 4.24 + maglevel * 5.34)
    return min, max
end

setCombatCallback(combat, CALLBACK_PARAM_LEVELMAGICVALUE, "onGetFormulaValues")

function onCastSpell(cid, var, isHotkey)
    if Tile(var:getPosition()):getTopCreature() then
        return doCombat(cid, combat, var)
    end

    doPlayerSendTextMessage("You can only use this rune on creatures.")
    player:getPosition():sendMagicEffect(CONST_ME_POFF)
    return false
end

@celohere
Those shield works now aginast monsters, but i feel like it dosent work with paladin damage (spear, royal spear, enchanted spear, assassin star) and same with knight weapons. Didnt you fix player damage against other player with shield?


sd.PNG

ehh..
Post automatically merged:

@krejken
sd script
Code:
local combat = createCombatObject()
setCombatParam(combat, COMBAT_PARAM_TYPE, COMBAT_PHYSICALDAMAGE)
setCombatParam(combat, COMBAT_PARAM_EFFECT, CONST_ME_MORTAREA)
setCombatParam(combat, COMBAT_PARAM_DISTANCEEFFECT, CONST_ANI_DEATH)
function onGetFormulaValues(cid, level, maglevel)
    min = -(level * 3.88 + maglevel * 4.60)
    max = -(level * 4.24 + maglevel * 5.34)
    return min, max
end

setCombatCallback(combat, CALLBACK_PARAM_LEVELMAGICVALUE, "onGetFormulaValues")

function onCastSpell(cid, var, isHotkey)
    if Tile(var:getPosition()):getTopCreature() then
        return doCombat(cid, combat, var)
    end

    doPlayerSendTextMessage("You can only use this rune on creatures.")
    player:getPosition():sendMagicEffect(CONST_ME_POFF)
    return false
end

@celohere
Those shield works now aginast monsters, but i feel like it dosent work with paladin damage (spear, royal spear, enchanted spear, assassin star) and same with knight weapons. Didnt you fix player damage against other player with shield?
Lua:
local combat = createCombatObject()
setCombatParam(combat, COMBAT_PARAM_TYPE, COMBAT_PHYSICALDAMAGE)
setCombatParam(combat, COMBAT_PARAM_EFFECT, CONST_ME_MORTAREA)
setCombatParam(combat, COMBAT_PARAM_DISTANCEEFFECT, CONST_ANI_DEATH)
function onGetFormulaValues(cid, level, maglevel)
    min = -(level * 3.88 + maglevel * 4.60)
    max = -(level * 4.24 + maglevel * 5.34)
    return min, max
end

setCombatCallback(combat, CALLBACK_PARAM_LEVELMAGICVALUE, "onGetFormulaValues")

function onCastSpell(cid, var, target)
    return doCombat(cid, combat, var)
end

my working scrypt but no shoth to invisibile creatures
 
Last edited:
no erorrs in console but still not working. Just the mesage "You can only use this rune on creatures."
Did you changed this part in spells.xml
XML:
needtarget="1"
to
XML:
needtarget="0"
???
 
@celohere I found bug with uhs. Global exhaust is broken or idk. In spells.xml uhs exhaust is set to 1000ms = 1s. In game if i spam uh i can only uh 6-7 times per 10 second. The second problem is that i have exhaust on exori in spells.xml 200ms = 2s and if i use exori then i can uh after 3 seconds not 2s. Also i sent u video with comparing players damage to other player with shield and without shield.
 
Did you changed this part in spells.xml
XML:
needtarget="1"
to
XML:
needtarget="0"
???
Lua:
<rune group="attack" spellid="21" name="Sudden Death" id="2268" allowfaruse="1" charges="1" lvl="45" maglv="15" exhaustion="2000" groupcooldown="2000" needtarget="0" blocktype="solid" script="attack/sudden death.lua"/>
and stil the same no efect
 
no but with yours data pack i have problem with NPC.
anyway thx for help sd problem is fixed now from yours and OTAmator direction
you need to make changes in the npc libs that you are using (they are the ones of th realera 8.0 datapack, right?
PS: look @celohere i succesfully found & adapted the taleon sprites to 8.0

icplaCw.png
 
you need to make changes in the npc libs that you are using (they are the ones of th realera 8.0 datapack, right?
PS: look @celohere i succesfully found & adapted the taleon sprites to 8.0

icplaCw.png
ok. i was look the npc libs and try change somthing but stil i got alot bugs in console. i try again fix this problem.
question
Do you have good working script for bridge from yours pictures??
Post automatically merged:

ok. i was look the npc libs and try change somthing but stil i got alot bugs in console. i try again fix this problem.
question
Do you have good working script for bridge from yours pictures??
npc.PNG
 
Last edited:
Whats wrong ? Previous version compile 100% no errors, i download new source and i have problem.

compileerror.jpg
 
Hi, can someone help me ?
/home/8.0/src/player.cpp: In member function ‘virtual int32_t Player::getDefense() const’:
/home/8.0/src/player.cpp:401:10: error: variable ‘extraDefense’ set but not used [-Werror=unused-but-set-variable]
int32_t extraDefense = 0;
^~~~~~~~~~~~
cc1plus: all warnings being treated as errors
 
I need an exe file to start the server. Here on the forum I found the 64bit exe version and I need it under 32 bit. Help !
 
rook.PNGrook2.PNG
problem with player HP bar after level UP.
my script data\creaturescripts\scripts\levelup.lua
Lua:
function onAdvance(cid, skill, oldlevel, newlevel)
        if skill == SKILL__LEVEL and newlevel == oldlevel+1 then
                doCreatureAddHealth(cid, getCreatureMaxHealth(cid))
                doCreatureAddMana(cid, getCreatureMaxMana(cid))
                doSendMagicEffect(getPlayerPosition(cid), CONST_ME_MAGIC_BLUE)
        end
return true
end
and add this to login.lua
-- Events
player:registerEvent("levelup")
 
Hi @celohere,

First off, thanks a lot! I've managed to run your server using the test map, it's been a blast.

I've been trying to run a small local server using the datapack in your linked post, but it seems the archive is corrupted.
I'm posting here since the realera thread looks dead.

I've started to fix the datapack myself, but I'm stuck on the (apparently common) 1740 item issue.
I gather that it's a problem with the svargrond arena quest...

Since you managed to fix the problem, could you confirm that this is something to be solved in the map?
If so, would you mind pointing me to the map editor you use ? I've tried a version of RME to open the map, but without luck so far.

I adapted some stuff to work with this distro ,probably its not 100% but you can play and have fun,you can search for old and new maps and update or downgrade to 8.0 also .( I changed the energy damage collor ;))


*EDIT fixed some npcs. new download <<<<<<<< come on guys give me at least one like :rolleyes:
 
Hi @celohere,

First off, thanks a lot! I've managed to run your server using the test map, it's been a blast.

I've been trying to run a small local server using the datapack in your linked post, but it seems the archive is corrupted.
I'm posting here since the realera thread looks dead.

I've started to fix the datapack myself, but I'm stuck on the (apparently common) 1740 item issue.
I gather that it's a problem with the svargrond arena quest...

Since you managed to fix the problem, could you confirm that this is something to be solved in the map?
If so, would you mind pointing me to the map editor you use ? I've tried a version of RME to open the map, but without luck so far.
Yes , there's a item inside one of the chests on svargrond that is from a higher tibia version , delete this item and its done.
 
Back
Top