Code:
-- scythelever
function onUse(cid, item, frompos, item2, topos)
if item.uid == 9020 and item.itemid == 1945 then
player1pos = {x=1172, y=1095, z=9, stackpos=253}
player1 = getThingfromPos(player1pos)
player2pos = {x=1174, y=1095, z=9, stackpos=253}
player2 = getThingfromPos(player2pos)
if player1.itemid > 0 and player2.itemid > 0 and player3.itemid > 0 and player4.itemid > 0 then
queststatus1 = getPlayerStorageValue(player1.uid,9020)
queststatus2 = getPlayerStorageValue(player2.uid,9020)
if queststatus1 == -1 and queststatus2 == -1 then
nplayer1pos = {x=1172, y=1086, z=9}
nplayer2pos = {x=1174, y=1086, z=9}
doSendMagicEffect(player1pos,2)
doSendMagicEffect(player2pos,2)
doTeleportThing(player1.uid,nplayer1pos)
doTeleportThing(player2.uid,nplayer2pos)
doSendMagicEffect(nplayer1pos,10)
doSendMagicEffect(nplayer2pos,10)
doTransformItem(item.uid,item.itemid+1)
else
doPlayerSendCancel(cid,"Somebody in your team has already done this quest.")
end
else
doPlayerSendCancel(cid,"You need two players for this quest.")
end
elseif item.uid ==9020 and item.itemid == 1946 then
if getPlayerAccess(cid) > 0 then
doTransformItem(item.uid,item.itemid-1)
else
doPlayerSendCancel(cid,"Sorry, not possible.")
end
else
return 0
end
return 1
end
Everytime I try to edit a Annilever script into a 2man version I fail.
Wheres the problem? hehe
Last edited: