Nie tylko o tibii...
Skrypt nie mój...
bardzo fajna zabawa. Można podrzucać komuś jak biegnie
No to tak w movements/scripts/ robimy plik o nazwie skorka.lua i wklejamy tam to:
--skorka by wojti function slizg(cid, o_ile, dir) if(dir=='auto')then whatDir = getPlayerLookDir(cid) end local newpos = getPlayerPosition(cid) if(whatDir==1)then newpos.x = newpos.x + o_ile elseif(whatDir==2)then newpos.y = newpos.y + o_ile elseif(whatDir==3)then newpos.x = newpos.x - o_ile elseif(whatDir==0)then newpos.y = newpos.y - o_ile end doTeleportThing(cid, newpos) end function onStepIn(cid, item, pos) local o_ile = {1} -- o ile ma slizgnac local strona = {'auto'} -- strona w ktora ma slizgnoc local damage = math.random(100,150) -- ile hp ma skuc for i=1, #o_ile do slizg(cid, o_ile[i], strona[i]) doPlayerSay(cid, 'Slisko Tu!!', 16) doSendMagicEffect(getPlayerPosition(cid), 31) doPlayerAddHealth(cid,-damage) end end
Następnie do movements.xml wklejamy to:
<movevent event="StepIn" itemid="2219" script="skorka.lua" />
Offline