What's new

[lua] [7.6] arena z potworami

Status
Not open for further replies.

vintetsuin

Active User
Joined
Jul 6, 2008
Messages
52
Reaction score
1
Witam wszystkich jak zrobi? dodatkowe opcje do tej areny takie jak
- je?eli jest 1 osoba na arenie to ja tp jak zabitego gracza w te miejsce
- jak wchodzi nowa osoba to zeby dany potwor zostal usuni?ty z areny

To tyle to ten skrypt prosz? o przer?bk? tych co tym si? zajmuj? :(

function onUse(cid, item, frompos, item2, topos)

if item.uid == 7800 and item.itemid == 1945 then
player1pos = {x=119, y=30, z=11, stackpos=253}
player1 = getThingfromPos(player1pos)


player2pos = {x=119, y=30, z=11, stackpos=253}
player2 = getThingfromPos(player2pos)


if player1.itemid > 0 then
arenalevel = 1
player1level = getPlayerLevel(player1.uid)
player2level = getPlayerLevel(player2.uid)


if player1level >= arenalevel and player2level >= arenalevel then
for arenax = 112,117 do
for arenay = 26,34 do
arenapos = {x=arenax, y=arenay, z=11, stackpos=253}
arenacreature = getThingfromPos(arenapos)

if arenacreature.itemid > 0 then
doPlayerSendCancel(cid,"Poczekaj chwilke ktos wlasnie rozgrywa pojedynek.")

return 1
end
end
end

nplayer1pos = {x=115, y=30, z=11}
nplayer2pos = {x=115, y=30, z=11}
nplayer3pos = {x=123, y=30, z=11}

doSendMagicEffect(player1pos,2)
doSendMagicEffect(player2pos,2)

doTeleportThing(player1.uid,nplayer1pos)
doTeleportThing(player2.uid,nplayer2pos)

doSendMagicEffect(nplayer1pos,10)
doSendMagicEffect(nplayer2pos,10)


doSummonCreature('Rat',{x=115, y=31, z=11})

else
doPlayerSendCancel(cid,"Ktos nie ma 25 poziomu.")
end
else
doPlayerSendTextMessage(cid,25,"Stan jak czlowiek.")
end
else
return 0
end

return 1
end
 
Status
Not open for further replies.
Top