drozd001
Advanced User
- Joined
- Dec 28, 2008
- Messages
- 209
- Reaction score
- 17
Wie ktos moze czemu moj skrypt nie dziala ?
Dodaje do szpital.lua kod.
Nastepnie do Movements.xml kod:
Potem ustawiam w map editorze kratke o unique id 19780
I gdy na nia staje, a storage value mam wlasciwe. Nic sie nie dzieje. Zmienialem tez skrypt zeby bylo widac problem. Czyli dodalem else i jakis tam przykladowy napis. Ale nawet po wykonaniu tej czynnosci nadal nic.
Jesli ktos wie czemu nie dziala to bardzo prosze o pomoc.
Dam +
Dodaje do szpital.lua kod.
Code:
-- Skrypt by Drozd --
function onStepIn(cid, item, pos)
local mana = getPlayerMana(cid)
local hp = getPlayerHealth(cid)
local kill = (mana+hp)-2
local gdzieTP = {x=1000, y=1000, z=7}
if item.uid == 19780 then
if getPlayerStorageValue(cid,2010) == 22 then
doTeleportThing(cid, gdzieTP)
doSendMagicEffect(gdzieTP, 2)
doPlayerAddHealth(cid,-kill)
setPlayerStorageValue(cid, 2010, 23)
end
end
end
Nastepnie do Movements.xml kod:
Code:
<movement event="StepIn" uniqueid="19780" script="szpital.lua"/>
I gdy na nia staje, a storage value mam wlasciwe. Nic sie nie dzieje. Zmienialem tez skrypt zeby bylo widac problem. Czyli dodalem else i jakis tam przykladowy napis. Ale nawet po wykonaniu tej czynnosci nadal nic.
Jesli ktos wie czemu nie dziala to bardzo prosze o pomoc.
Dam +