demage.no-ip.org 111111/tibia
Ten npc jest dla ots for funSkrypt By Me
w data/npc tworzymy Zajaczek Wielkanocny.xml I wpisujemy w nim
Kod:
<?xml version="1.0"?>
<npc name="Zajaczek Wielkanocny" script="data/npc/scripts/zajac.lua" access="3" lookdir="2">
<mana now="800" max="800"/>
<health now="200" max="200"/>
<look type="74" head="20" body="30" legs="40" feet="50"/>
</npc>
A w data/npc/scripts tworzymy zajac.lua i wpisujemy w nim
Kod:
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)
if focus == cid then
selfSay('wesolego jajka.')
focus = 0
talk_start = 0
end
end
Offline