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

HELP PVP like survival server (2005)

Andre1987n

New Member
Joined
Mar 1, 2015
Messages
5
Reaction score
0
Hello.

Like 10 years ago I was hosting Dutch-Tibia (survival-server), this server had an amazing pvp system, when u kilt someone unjustified u got a msg appearing above your head PK PK PK PK, when u kill this player u will get experience.
My question is, is it possible to make this system in TFS 1.1 ?? ore could anyone help me with it.


Your sincerely,

Andre.
 
How should this text look like? You can use function say, which is the same as doCreatureSay in older versions.
https://github.com/otland/forgottenserver/blob/1.1/data/lib/compat/compat.lua#L163
It gives an orange text if you use TALKTYPE_MONSTER_SAY, like the ones you see from monsters.
Code:
player:say("PK PK PK PK", TALKTYPE_MONSTER_SAY)

You can check for skulltype to see if it's unjustified or use function onDeath instead of onKill.
https://github.com/otland/forgottenserver/blob/1.1/data/lib/compat/compat.lua#L207

Function for exp
https://github.com/otland/forgottenserver/blob/1.1/data/lib/compat/compat.lua#L398
 
Last edited:
How should this text look like? You can use function say, which is the same as doCreatureSay in older versions.
https://github.com/otland/forgottenserver/blob/1.1/data/lib/compat/compat.lua#L163
It gives an orange text if you use TALKTYPE_MONSTER_SAY, like the ones you see from monsters.
Code:
player:say("PK PK PK PK", TALKTYPE_MONSTER_SAY)

Function for exp
https://github.com/otland/forgottenserver/blob/1.1/data/lib/compat/compat.lua#L398

IIRC it was doSendAnimatedText with TEXTCOLOR_RED. Does that function still exist?
 
This is not possible anymore with the real tibia clients 9.1+, the animated text is still possible with numbers but not as a string, so you can't use it anymore for text/words.
 
Back
Top