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

TalkAction !pvp - own world type! : )

I am running TFS 1.2 and get this error upon statup. It looks like "combat" is an invalid creaturescript type. Any idea how to resolve this?

Code:
>> Loading script systems
[Error - CreatureEvent::configureEvent] Invalid type for creature event: PVPMode
[Warning - BaseEvents::loadFromXml] Failed to configure event
 
I am running TFS 1.2 and get this error upon statup. It looks like "combat" is an invalid creaturescript type. Any idea how to resolve this?

Code:
>> Loading script systems
[Error - CreatureEvent::configureEvent] Invalid type for creature event: PVPMode
[Warning - BaseEvents::loadFromXml] Failed to configure event
Requesting assistance with the newer TFS revisions.
 
[17/08/2020 23:29:35] [Błąd - interfejs CreatureScript]
[17/08/2020 23:29:35] bufor: onCombat
[17/08/2020 23:29:35] Opis:
[17/08/2020 23:29:35] [string "loadBuffer"]: 2: próba wywołania globalnego „getPlayerSecureMode” (wartość zerowa)
[17/08/2020 23:29:35] śledzenie stosu:
[17/08/2020 23:29:35] [string "loadBuffer"]: 2: w funkcji <[string "loadBuffer"]: 1>
 
Hi, I am trying to modify the script so I can create my own PVP mode/system

How do I add to this script , if your PVP mode = 0 then you cant damage/attack other people, but others can still damage/attack you
but if youre both mode 0, no damage, and if youre both mode 1, then damage

Currently it checks, if both have pvp mode 1 (on), they attack each other, if PVP mode is 0, no damage


Lua:
function onCombat(cid, target)
    if (getPlayerPVPMode(cid) == 1 and getPlayerPVPMode(target) == 1) or isPlayer(target) == FALSE then
        return TRUE
    else
        return FALSE
    end
end
 
Back
Top