leyendario
kind of scripter
ok my problem is that i want an action script that teleport 3 players to a room and when it happens summon a boss... no chest quest.. only that, teleport and boss summoned!
i make a script following some guides... but i cant make it works...
it looks like an anihi..
This is my script
it goes not do enything... no teleport nothing. and it should at least say you "need 3 players" but it dosnt.
plz help!
i make a script following some guides... but i cant make it works...
it looks like an anihi..
This is my script
Code:
function onUse(cid, item, frompos, item2, topos)
if item.uid == 7010 then
end
if item.itemid == 1946 then
end
player1pos = {x=167, y=47, z=15, stackpos=253}
player1 = getThingfromPos(player1pos)
player2pos = {x=165, y=46, z=15, stackpos=253}
player2 = getThingfromPos(player2pos)
player3pos = {x=165, y=46, z=15, stackpos=253}
player3 = getThingfromPos(player3pos)
if player1.itemid > 0 and player2.itemid > 0 and player3.itemid > 0 then
player1level = getPlayerLevel(player1.uid)
player2level = getPlayerLevel(player2.uid)
player3level = getPlayerLevel(player3.uid)
questlevel = 100
if player1level >= questlevel and player2level >= questlevel and player3level >= questlevel then
demon1pos = {x=230, y=30, z=7}
doSummonCreature("Fire Boss", demon1pos)
nplayer1pos = {x=229, y=30, z=7}
nplayer2pos = {x=226, y=27, z=7}
nplayer3pos = {x=226, y=33, z=7}
doSendMagicEffect(player1pos,2)
doSendMagicEffect(player2pos,2)
doSendMagicEffect(player3pos,2)
doTeleportThing(player1.uid,nplayer1pos)
doTeleportThing(player2.uid,nplayer2pos)
doTeleportThing(player3.uid,nplayer3pos)
doSendMagicEffect(nplayer1pos,10)
doSendMagicEffect(nplayer2pos,10)
doSendMagicEffect(nplayer3pos,10)
doTransformItem(item.uid,1945)
else
doPlayerSendCancel(cid,"All players must have level 100 to enter.")
end
else
doPlayerSendCancel(cid,"you need 3 players")
end
end
it goes not do enything... no teleport nothing. and it should at least say you "need 3 players" but it dosnt.
plz help!
Last edited: