darksta
New Member
- Joined
- Feb 10, 2010
- Messages
- 39
- Reaction score
- 0
something is wrong with the script, Fix it
This one, does not work and I put the action ID to Sqm and nothing
helpme :c
Code:
<movevent event="StepIn" itemid="4820" script="nadar.lua" /> --nadar
<movevent event="StepOut" itemid="4820" script="nadar.lua" /> --nadar
Code:
function onStepIn(cid, item, pos)
if isPlayer(cid) ~= TRUE then
return 1
end
al = getPlayerAccess(cid)
if al < 1 then
diveroutfit = { lookType = 267, lookHead = 0, lookBody = 0, lookLegs = 0, lookFeet = 0, lookAddons = 0 }
doSetCreatureOutfit(cid, diveroutfit, -1)
end
return 1
end
function onStepOut(cid, item, pos)
if isPlayer(cid) ~= TRUE then
return 1
end
if item.itemid == 4820 then
al = getPlayerAccess(cid)
if al < 1 then
doRemoveCondition(cid, CONDITION_OUTFIT)
end
end
return 1
end
This one, does not work and I put the action ID to Sqm and nothing
Code:
<movevent event="StepIn" itemid="1284" script="saltoagua.lua" />
Code:
function onStepIn(cid, item, pos)
if isPlayer(cid) ~= TRUE then
return 1
end
npos = {x=724, y=759, z=8}
newpos = {x=709, y=788, z=7}
if item.actionid == 50100 then
itemhelmet = getPlayerSlotItem(cid, 1)
if itemhelmet.itemid == 5461 then --helmet of the deep
doTeleportThing(cid,npos)
doPlayerSay(cid,"Glup! Glup! Glup!",16)
doSendMagicEffect(npos,1)
doSendMagicEffect(newpos,1)
return 1
end
doPlayerSendCancel(cid, "Sorry you need a helmet of the deep to go under water.")
--doMoveCreature(cid, 0)
else
return 0
end
return 1
end
helpme :c
Last edited: