Forum KevlarSiteForum Strona Główna KevlarSiteForum
KevlarSiteForum


poradnik jak zrobić arene

 
Napisz nowy temat   Odpowiedz do tematu    Forum KevlarSiteForum Strona Główna -> Poradniki
Zobacz poprzedni temat :: Zobacz następny temat  
Administrator
Administrator



Dołączył: 16 Gru 2006
Posty: 33
Przeczytał: 0 tematów

Ostrzeżeń: 0/5

 PostWysłany: Czw 14:26, 28 Gru 2006    Temat postu: poradnik jak zrobić arene Back to top

1.a wec trzeba zrobic cos takiego(na map edytorze:
[c] [c] [c] [c]
[p]
[n] [n] [n] [n]

otoz wyjasniam p to przelacznik trzeba na propeteries w nim ustawic(na uniqueid) 7009
n to miwejsce niebieskiej druzyny
c to meijsce czerwonej
2.w actions.xml wklejamy :
<action uniqueid="7009" script="guildlever.lua" />

3. W actions\scripts robimy plik guildlever.lua i wpisujemy w nim to:

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

if item.uid == 7009 and item.itemid == 1946 then
player1pos = {x=162, y=43, z=9, stackpos=253}
player1 = getThingfromPos(player1pos)

player2pos = {x=164, y=43, z=9, stackpos=253}
player2 = getThingfromPos(player2pos)

player3pos = {x=166, y=43, z=9, stackpos=253}
player3 = getThingfromPos(player1pos)

player4pos = {x=168, y=43, z=9, stackpos=253}
player4 = getThingfromPos(player1pos)

player5pos = {x=162, y=46, z=9, stackpos=253}
player5 = getThingfromPos(player1pos)

player6pos = {x=164, y=46, z=9, stackpos=253}
player6 = getThingfromPos(player1pos)

player7pos = {x=166, y=46, z=9, stackpos=253}
player7 = getThingfromPos(player1pos)

player8pos = {x=168, y=46, z=9, stackpos=253}
player8 = getThingfromPos(player1pos)

if player1.itemid > 0 and player2.itemid > 0 then
arenalevel =35
player1level = getPlayerLevel(player1.uid)
player2level = getPlayerLevel(player2.uid)
player3level = getPlayerLevel(player3.uid)
player4level = getPlayerLevel(player4.uid)
player5level = getPlayerLevel(player5.uid)
player6level = getPlayerLevel(player6.uid)
player7level = getPlayerLevel(player7.uid)
player8level = getPlayerLevel(player8.uid)

if player1level >= arenalevel and player2level >= arenalevel and player3level >= arenalevel and player4level >= arenalevel and player5level >= arenalevel and player6level >= arenalevel and player7level >= arenalevel and player8level >= arenalevel then
for arenax = 271,303 do
for arenay = 141,161 do
arenapos = {x=arenax, y=arenay, z=7, stackpos=253}
arenacreature = getThingfromPos(arenapos)

if arenacreature.itemid > 0 then
doPlayerSendCancel(cid,"Wait for current duel to end.")
return 1
end
end
end

nplayer1pos = {x=301, y=159, z=7}
nplayer2pos = {x=303, y=159, z=7}
nplayer3pos = {x=301, y=161, z=7}
nplayer4pos = {x=303, y=161, z=7}
nplayer5pos = {x=271, y=141, z=7}
nplayer6pos = {x=273, y=141, z=7}
nplayer7pos = {x=271, y=143, z=7}
nplayer8pos = {x=273, y=143, z=7}
doSendMagicEffect(player1pos,2)
doSendMagicEffect(player2pos,2)
doSendMagicEffect(player3pos,2)
doSendMagicEffect(player4pos,2)
doSendMagicEffect(player5pos,2)
doSendMagicEffect(player6pos,2)
doSendMagicEffect(player7pos,2)
doSendMagicEffect(player8pos,2)

doTeleportThing(player1.uid,nplayer1pos)
doTeleportThing(player2.uid,nplayer2pos)
doTeleportThing(player3.uid,nplayer3pos)
doTeleportThing(player4.uid,nplayer4pos)
doTeleportThing(player5.uid,nplayer5pos)
doTeleportThing(player6.uid,nplayer6pos)
doTeleportThing(player7.uid,nplayer7pos)
doTeleportThing(player8.uid,nplayer8pos)

doSendMagicEffect(nplayer1pos,10)
doSendMagicEffect(nplayer2pos,10)
doSendMagicEffect(nplayer3pos,10)
doSendMagicEffect(nplayer4pos,10)
doSendMagicEffect(nplayer5pos,10)
doSendMagicEffect(nplayer6pos,10)
doSendMagicEffect(nplayer7pos,10)
doSendMagicEffect(nplayer8pos,10)

doPlayerSendTextMessage(player1.uid,18,"FIGHT!")
doPlayerSendTextMessage(player2.uid,18,"FIGHT!")
doPlayerSendTextMessage(player3.uid,18,"FIGHT!")
doPlayerSendTextMessage(player4.uid,18,"FIGHT!")
doPlayerSendTextMessage(player5.uid,18,"FIGHT!")
doPlayerSendTextMessage(player6.uid,18,"FIGHT!")
doPlayerSendTextMessage(player7.uid,18,"FIGHT!")
doPlayerSendTextMessage(player8.uid,18,"FIGHT!")
else
doPlayerSendCancel(cid,"Both fighters must have level 35.")
end
else
doPlayerSendCancel(cid,"You need 8 players for a Guild Fight.")
end
else
return 0
end

return 1
end

player1 pos= i wpisac wspolrzedne ;] gdzie ma stac 1 gracz itd, stackpos zostawic!
arenax = i tam wpisac wspolrzedne x arne(tego miejsca gdzie ma teleportowac, najlepiej zeby to byl kwadrat ;])
to sa wspolrzedne y tez tak wpisac
npplayer1pos to wspolrzedne gdzie ma teleportowac gracza 1(gdzie na arenie)


Post został pochwalony 0 razy
 
Zobacz profil autora
Wyświetl posty z ostatnich:   
Napisz nowy temat   Odpowiedz do tematu    Forum KevlarSiteForum Strona Główna -> Poradniki Wszystkie czasy w strefie EET (Europa)
Strona 1 z 1

 
Skocz do:  
Możesz pisać nowe tematy
Możesz odpowiadać w tematach
Nie możesz zmieniać swoich postów
Nie możesz usuwać swoich postów
Nie możesz głosować w ankietach