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

Raid problem

Jarhead

New Member
Joined
Feb 2, 2012
Messages
81
Reaction score
2
Location
Poland
Yo!

I got problem with raids.
Msg on command:
/raid ciemne
Such raid does not exists.


Someone got working script for TFS 0.3.1 or know what's wrong here?
++

raids.xml
Code:
<?xml version="1.0" encoding="UTF-8"?>
<raids>
<raid name="ciemne" file="ciemne.xml" interval12="100000" margin="0" />
</raids>

ciemne.xml
Code:
<raid>
<announce delay="0" type="18" message="Ciemne moce szykuja sie do ataku na Kiobios. Atakuja ze wschodu. Obroncy do broni!" />
<areaspawn delay="10000" fromx="338" fromy="723" fromz="7" tox="282" toy="720" toz="7">
<monster name="Hero" amount="20" />
</areaspawn>

<announce delay="180000" type="18" message="Jest ich coraz wiecej! Teraz albo nigdy!" />

<areaspawn delay="190000" fromx="338" fromy="723" fromz="7" tox="289" toy="723" toz="7">
<monster name="Mroczny Rycerz" amount="13" />
</areaspawn>

<announce delay="490000" type="18" message="Nie poddawajcie sie! Bogowie sa z nami! Smok Zombi nadchodzi!" />
<singlespawn delay="500000" name="Smok Zombi" x="316" y="724" z="7" />
</raid>

talkactions
Code:
<talkaction filter="word" log="yes" words="/raid" access="4" script="raid.lua"/>

raid.lua
Code:
function onSay(cid, words, param)
    if(param == "") then
        doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "Command param required.")
        return TRUE
    end

    local ret = executeRaid(param)
    if(ret == LUA_ERROR) then
        doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "Such raid does not exists.")
        return TRUE
    end

    if(ret == FALSE) then
        doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "Could not execute raid.")
        return TRUE
    end

    doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "Raid started.")
    return TRUE
end
 

Similar threads

Back
Top