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

CLEAN npc

Deaktiver

Materia
Joined
Nov 25, 2007
Messages
642
Reaction score
7
Location
Germany
Hello,

I need a Clean-NPC.
Don't say: "Tfs has a clean function".
Just give me a npc who works on tfs, please.
I only need a NPC on TFS that can do spells like /clean!
Don't say: "access="4"" THIS IS TFS not evo..
Thanks!


Deaktiver
 
Last edited:
The "Clean script" works but the Clean NPC does not works because I don't know how to give him access. Because "access="5"" is NOT for tfs..

<npc name="Cleaner" script="data/npc/scripts/clean.lua" floorchange="0" group="3" groupid="3" group_id="3" access="3" level="1" maglevel="1">
<health now="150" max="150"/>
<look type="133" head="20" body="120" legs="75" feet="13" addons="3" corpse="2212"/>

</npc>

Here the working clean SCRIPT!
cleanTime = 3600 -- clean every 60 minutes
warnTime = 10 -- gives 30 second warning
lastclean = 0
focus = 0
hasWarned = 0
function onThink()
if lastclean == 0 then
lastclean = os.time()
end
if os.difftime (os.time(), lastclean) >= (cleanTime-warnTime) and hasWarned == 0 then
selfSay("/B Global floor clean in "..warnTime.." seconds.")
lastclean = os.time()
hasWarned = 1
end
if os.difftime (os.time(), lastclean) >= (warnTime) and hasWarned == 1 then
selfSay('/clean')
lastclean = os.time()
hasWarned = 0
end
end

I need only the NPC with the right access..
 
i have no idea.. i guess you need to change somehtink with
group="3" groupid="3" group_id="3" access="3"

but i am not sure.. if no1 here is gonna help you try on other forums ;)
i will try to find that for you.. and then i will edit the post.. :P


cant find anythink ;(
sry i cant help :(
 
Last edited:
Back
Top