Skrypter
Advanced User
- Dołączył
- Maj 17, 2008
- Posty
- 243
- Liczba reakcji
- 23
Na Evo By Sentil jest NPC Cleaner a jego zadaniem jest czyszczenie mapy co jaki? czas a wiec chia?bym go wam udostepni?:'
W wchodzimy w data>npc i tworzymy plik o nazwie np. Cleaner.xml
w nim wklejcie:
W wchodzimy w data>npc i tworzymy plik o nazwie np. Cleaner.xml
w nim wklejcie:
Nast?pnie wchodzimy w data>npc>scripts i tworzymy plik o nazwie cleaner.lua i w nim wklejcie to:<?xml version="1.0"?>
<npc name="Cleaner" script="data/npc/scripts/cleaner.lua" access="3">
<look type="104" head="4" body="114" legs="132" feet="115"/>
</npc>
Czekam Na Komentarzelastclean = 0
hasWarned = 0
focus = 0
talk_start = 0
target = 0
following = false
attacking = false
function onThingMove(creature, thing, oldpos, oldstackpos)
end
function onCreatureAppear(creature)
end
function onCreatureDisappear(cid, pos)
end
function onCreatureTurn(creature)
end
function onCreatureSay(cid, type, msg)
end
function onCreatureChangeOutfit(creature)
end
function onThink()
if lastclean == 0 then
lastclean = os.time()
end
if os.difftime(os.time(), lastclean) >= (29*60) and hasWarned == 0 then
selfSay('/B Server clean in one minute. Please do not leave any valuable items on the ground!')
hasWarned = 1
end
if os.difftime (os.time(), lastclean) >= (30*60) then
selfSay('/clean')
lastclean = os.time()
end
end
(Server clean in one minute. Please do not leave any valuable items on the ground!)
Tekst kt?ry pojawia si? minut? przez cleanem
(29*60) 1 = 1 minuta