• 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!
  • 2026 staff recruitment is open! Check it out and consider applying!

Need two scripts.

therrax

Member
Joined
Jul 12, 2012
Messages
262
Solutions
1
Reaction score
11
Hi. I need two scripts. On tfs0.4 8.60
1. Regenerate hp and mana after advance
2.Spells and potions show how much they add health and mana ( like real tibia )

Czesc, potrzebuje dwóch skryptów.
1. Regeneracja hp i many po awansie.
2.Potiony i czary pokazuja ile many dostarczaja graczowi. Jak na real tibii

Greets.
 
Last edited:
1. Masz kawałek:
Code:
onAdvanced
oldLevel < newLevel
siema = getPlayerMaxHealth
czesc = getPlayerMaxMana
doPlayerAddHealth(cid, siema)
doPlayerAddMana(cid, czesc)

2. config.lua, lub w każdym skypcie potiona i czaru doSendAnimatedText
 
Dzieki, za drugą odpowiedź.
@DanJ93 znalazłem to
Code:
function onAdvance(cid, skill, oldlevel, newlevel)

if skill == SKILL__LEVEL then
doCreatureAddHealth(cid, getCreatureMaxHealth(cid) - getCreatureHealth(cid))
doCreatureAddMana(cid, getCreatureMaxMana(cid) - getCreatureMana(cid))
doSendMagicEffect(getPlayerPosition(cid), CONST_ME_MAGIC_BLUE)
end
return TRUE
end
wrzucić to do creaturescripts? bedzie dzialac?
 
Dzieki, za drugą odpowiedź.
@DanJ93 znalazłem to
Code:
function onAdvance(cid, skill, oldlevel, newlevel)

if skill == SKILL__LEVEL then
doCreatureAddHealth(cid, getCreatureMaxHealth(cid) - getCreatureHealth(cid))
doCreatureAddMana(cid, getCreatureMaxMana(cid) - getCreatureMana(cid))
doSendMagicEffect(getPlayerPosition(cid), CONST_ME_MAGIC_BLUE)
end
return TRUE
end
wrzucić to do creaturescripts? bedzie dzialac?

put it in creaturescripts and register it to login.lua
 
Back
Top