wojti124
Active User
- Joined
- Aug 14, 2008
- Messages
- 99
- Reaction score
- 20
Witam!
Zrobi?em sk?rk? na kt?rej si? ?lizga
Skrypt full by me!
No to tak w movements/scripts/ robimy plik o nazwie skorka.lua
I wklejamy tam to:
Nast?pnie do movements.xml wklejamy to:
Scren:
wiem ze lepszy by? by filmik, ale nie mia?em czasu;/
Mam nadzieje ?e si? przyda
I prosz? o oceny
Zrobi?em sk?rk? na kt?rej si? ?lizga
Skrypt full by me!
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, strona)
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" />
Scren:
wiem ze lepszy by? by filmik, ale nie mia?em czasu;/
Mam nadzieje ?e si? przyda
I prosz? o oceny