What's new

[8.1] Annihilator prosz? o pomoc

Status
Not open for further replies.

Bananek251

User
Joined
Apr 19, 2008
Messages
46
Reaction score
1
Witam,
Mam problem z Annihilatorem(Evolution 8.1 by Aciek)gdy 4 osoby stana na wyznaczonych kratkach i jak 1 osoba poci?gnie za d?wignie pojawia si? dymek i graczy nie TELEPORTUJE(!) prosz? o POMOC.

"Lex" WIELKIE DZIEKI!! Dorobi?em respienie si? demon?w i poprostu Anni jak na RL (!) ;-)
 
Last edited:

Lex

Advanced User
Joined
Jul 20, 2008
Messages
289
Reaction score
19
Odp: [8.1] Annihilator prosz? o pomoc

Wejd? do data/actions i otw?rz notatnikiem plik actions.xml
Znajd? t? linijk?:

<action uniqueid="4345" script="annilever.lua" />

Usu? to 4345 i wpisz 7000

Aby to wygl?da?o tak:

<action uniqueid="7000" script="annilever.lua" />

Skrypt annilever.lua:

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

if item.uid == 7000 and item.itemid == 1946 then
player1pos = {x=1658, y=351, z=13, stackpos=253}
player1 = getThingfromPos(player1pos)

player2pos = {x=1659, y=351, z=13, stackpos=253}
player2 = getThingfromPos(player2pos)

player3pos = {x=1660, y=351, z=13, stackpos=253}
player3 = getThingfromPos(player3pos)

player4pos = {x=1661, y=351, z=13, stackpos=253}
player4 = getThingfromPos(player4pos)


if player1.itemid > 0 and player2.itemid > 0 and player3.itemid > 0 and player4.itemid > 0 then
queststatus1 = getPlayerStorageValue(player1.uid,7000)
queststatus2 = getPlayerStorageValue(player2.uid,7000)
queststatus3 = getPlayerStorageValue(player3.uid,7000)
queststatus4 = getPlayerStorageValue(player4.uid,7000)

if queststatus1 == -1 and queststatus2 == -1 and queststatus3 == -1 and queststatus4 == -1 then
nplayer1pos = {x=1659, y=341, z=13}
nplayer2pos = {x=1660, y=341, z=13}
nplayer3pos = {x=1661, y=341, z=13}
nplayer4pos = {x=1662, y=341, z=13}

doSendMagicEffect(player1pos,2)
doSendMagicEffect(player2pos,2)
doSendMagicEffect(player3pos,2)
doSendMagicEffect(player4pos,2)

doTeleportThing(player1.uid,nplayer1pos)
doTeleportThing(player2.uid,nplayer2pos)
doTeleportThing(player3.uid,nplayer3pos)
doTeleportThing(player4.uid,nplayer4pos)

doSendMagicEffect(nplayer1pos,10)
doSendMagicEffect(nplayer2pos,10)
doSendMagicEffect(nplayer3pos,10)
doSendMagicEffect(nplayer4pos,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 four players for this quest.")
end

elseif item.uid ==7000 and item.itemid == 1945 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

Na czerwono zaznaczy?em miejsca gdzie masz wpisa? 7000
 
Last edited:

Maro22225

Advanced User
Joined
Jul 19, 2008
Messages
154
Reaction score
1
Odp: [8.1] Annihilator prosz? o pomoc

@ pytanie off topic
Jak robi? zeby text by? pokazany jako kod???
(4 admins mo?ecie mi nie zalicza? tego posta, pyta?em kilku os?b na priv zadna nie odp.)
@ edit
Thx "Soul of dragon" za odp :) (wyja?niony m?j problem)
 
Last edited:

Lex

Advanced User
Joined
Jul 20, 2008
Messages
289
Reaction score
19
Odp: [8.1] Annihilator prosz? o pomoc

@ pytanie off topic
Jak robi? zeby text by? pokazany jako kod???
(4 admins mo?ecie mi nie zalicza? tego posta, pyta?em kilku os?b na priv zadna nie odp.)
@ edit
Thx "Soul of dragon" za odp :) (wyja?niony m?j problem)

O co Ci chodzi?? Temat?w nie pomyli?e???
 
Status
Not open for further replies.
Top