2 scripts....
first a change on script...
I want this script so that only paladins(or royal pallys) can flip it
seocnd....
a movement...
player will step in action id x and will receive 300 damage if he's paladin, if not he'll receive 1000.
thx in adavance and I'll rep+++
first a change on script...
I want this script so that only paladins(or royal pallys) can flip it
LUA:
function onUse(cid, item, frompos, item2, topos)
local gatepos = {x=442, y=1386, z=10, stackpos=1}
local getgate = getThingfromPos(gatepos)
if item.uid == 10206 and item.itemid == 1945 and getgate.itemid == 6289 then
doRemoveItem(getgate.uid,1)
doTransformItem(item.uid,item.itemid+1)
elseif item.uid == 10206 and item.itemid == 1946 and getgate.itemid == 0 then
doCreateItem(6289,1,gatepos)
doTransformItem(item.uid,item.itemid-1)
else
doPlayerSendCancel(cid,"Sorry not possible.")
end
return 1
end
seocnd....
a movement...
player will step in action id x and will receive 300 damage if he's paladin, if not he'll receive 1000.
thx in adavance and I'll rep+++