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

TFS 0.X Die in PVP ZONE (red zone on remeres) lose exp

OP
caquinha

caquinha

Member
Joined
Aug 8, 2016
Messages
244
Solutions
1
Reaction score
23
but pvp zones is designed for pvp arenas? why not just use normal zone that has everything u have already?

I wanna make some different, i want to make some islands full pvp hardcore, but with death loss
So players more hardcores can on dangerous empty caves :)
 

pink_panther

Premium User
Premium User
Joined
Sep 10, 2016
Messages
591
Solutions
8
Reaction score
238
Location
Kazordoon
Frag count is in onDeath script in lua, you could just make it a normal area, but in the onDeath, check if player was within xyz and skip frag count towards skull if they are in hardcore zone.
 
OP
caquinha

caquinha

Member
Joined
Aug 8, 2016
Messages
244
Solutions
1
Reaction score
23
Frag count is in onDeath script in lua, you could just make it a normal area, but in the onDeath, check if player was within xyz and skip frag count towards skull if they are in hardcore zone.

How to?

I don't find anything about frag:

---

And what about range?
It should work:
Code:
STARTS_CITY = {x=100, y=100, z=0}
ENDS_CITY = {x=1000, y=1000, z=15}

function onDeath(cid)
    if isInRange(getCreaturePosition(cid), STARTS_CITY, ENDS_CITY) then
        -- xxx
    end
end

???
 
OP
caquinha

caquinha

Member
Joined
Aug 8, 2016
Messages
244
Solutions
1
Reaction score
23
I need help with one of this two options

1- when die on red zones loses lvl,skills,loot
2- when kill someone in some range of position or with some storage don't count the frag

Idk which one should i choose, but idk how to do either
 

5lave Ots

Member
Joined
Oct 2, 2017
Messages
176
Reaction score
16
Location
Ankrahmun Tomb
Buddy please post the script he mention...
Try to open data / lib / 050 functions
Also there is a file called lua_functions .file
They contain all Lua functions working on your tfs. With notepad ++
You can search the functions...
Make mistakes and post the errors here so you will get learned...
Because the forum will not make everything for you.... And if you try then fail repost the new error, get new experience post again
And I'll fix it for you
Sorry for long text
 
Top