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

Lua PVP Optional useable Item tfs 1.4

Kawaki69

Member
Joined
Mar 4, 2022
Messages
72
Reaction score
8
Was searching around the forum for hours but I couldn't find it if someone can do it will be much appreciated for the community and a helpful for the starters. A simple item is written on onUse if you clicked one time it turns off your PVP and if you clicked once again it turns on your PVP.
Preview:- Click
"you have turned off your PVP system" and if someone looks at you it says "PVP OFF"
the another click
"you have turned on your PVP system" and if someone looks at you it says "PVP ON".
Using tfs 1.4.1
 
Last edited:
Solution
now no description like nothing happened but it works i can't attack the target and this error appear
Lua:
Lua Script Error: [Event Interface]
data/events/scripts/creature.lua:Creature@onTargetCombat
C:\Users\angelica\Desktop\server\data\scripts\batman.lua:30: attempt to index local 'self' (a nil value)
stack traceback:
        [C]: in function '__index'
        C:\Users\angelica\Desktop\server\data\scripts\batman.lua:30: in function <C:\Users\angelica\Desktop\server\data\scripts\batman.lua:29>
        ...rs\angelica\Desktop\server\data\scripts/lib\event_callbacks.lua:127: in function <...rs\angelica\Desktop\server\data\scripts/lib\event_callbacks.lua:123>

msg me private to avoid spamming the thread
Post automatically merged:
...
just FYI, this "pvp mode" is the "new" tibia pvp called "open pvp" (and it sux), and it is not implemented in any ot engine I suppose. slavi dodo might have coded it thought, but we all know what happened
i got it working but not at 100% like just two of the four buttons, white and red one, thats why i pointed those links.

also i did a little mod on the 10.98 client on the server im working now, the server use a diferent attack/defense methods where the weapons have a min and max damage, so the buttons of full attack, balance, and defence mode have no use, so we did the next

full attack= pvp 100% enabled

balanced mode= pvp 50% player can attack only pk players (so you can spawn spells) (if you attack the pk, he can attack you back)

full defense= pvp disabled 100%


also to change from one mode to another you need to be in pz zone
we did this so players can enjoy the game without pvp if you just wanna exp.

also on the github is the yellow revenge skull system, on the pull list
i liked that system as you can revenge anytime from you killer maybe i will implement it too
 
Last edited:
Back
Top