Nie tylko o Tibii i OTS...
Kod:
function onUse(cid, item, frompos, item2, topos)
end1pos = {x=659, y=759, z=10, stackpos=255} -- druid koniec
end2pos = {x=661, y=757, z=10, stackpos=255} -- pall koniec
end3pos = {x=663, y=759, z=10, stackpos=255} -- sorc koniec
end4pos = {x=661, y=761, z=10, stackpos=255} -- knight koniec
ppl1pos = {x=644, y=753, z=10, stackpos=253} -- druid start
ppl2pos = {x=647, y=750, z=10, stackpos=253} -- pall start
ppl3pos = {x=650, y=753, z=10, stackpos=253} -- sorc start
ppl4pos = {x=647, y=756, z=10, stackpos=253} -- knight start
ppl1 = getThingfromPos(ppl1pos)
ppl2 = getThingfromPos(ppl2pos)
ppl3 = getThingfromPos(ppl3pos)
ppl4 = getThingfromPos(ppl4pos)
item1pos = {x=643, y=753, z=10, stackpos=255} --item1pos jabko
item2pos = {x=647, y=749, z=10, stackpos=255} --item2pos kusza
item3pos = {x=651, y=753, z=10, stackpos=255} --item3pos spelbook
item4pos = {x=647, y=757, z=10, stackpos=255} --item4pos sword
item1 = getThingfromPos(item1pos)
item2 = getThingfromPos(item2pos)
item3 = getThingfromPos(item3pos)
item4 = getThingfromPos(item4pos)
if item.uid == 9010 and item.itemid == 1945 and item1.itemid == 2674 and item2.itemid == 2455 and item3.itemid == 2175 and item4.itemid == 2376 and ppl1.itemid > 0 and ppl2.itemid > 0 and ppl3.itemid > 0 and ppl4.itemid > 0 and getPlayerVocation(ppl1.uid) == 2 and getPlayerVocation(ppl2.uid) == 3 and getPlayerVocation(ppl3.uid) == 1 and getPlayerVocation(ppl4.uid) == 4 then
doRemoveItem(item1.uid,1)
doSendMagicEffect(item1pos,13)
doRemoveItem(item2.uid,1)
doSendMagicEffect(item2pos,13)
doRemoveItem(item3.uid,1)
doSendMagicEffect(item3pos,13)
doRemoveItem(item4.uid,1)
doSendMagicEffect(item4pos,13)
doTeleportThing(ppl1.uid,end1pos)
doSendMagicEffect(ppl1pos,10)
doSendMagicEffect(end1pos,10)
doTeleportThing(ppl2.uid,end2pos)
doSendMagicEffect(ppl2pos,10)
doSendMagicEffect(end2pos,10)
doTeleportThing(ppl3.uid,end3pos)
doSendMagicEffect(ppl3pos,10)
doSendMagicEffect(end3pos,10)
doTeleportThing(ppl4.uid,end4pos)
doSendMagicEffect(ppl4pos,10)
doSendMagicEffect(end4pos,10)
doTransformItem(item.uid,item.itemid+1)
elseif item.uid == 9010 and item.itemid == 1946 then
doTransformItem(item.uid,item.itemid-1)
else
return 0
end
return 1
end
if item.uid == 9010 and item.itemid == 1945 and item1.itemid == 2674 and item2.itemid == 2455 and item3.itemid == 2175 and item4.itemid == 2376 and ppl1.itemid > 0 and ppl2.itemid > 0 and ppl3.itemid > 0 and ppl4.itemid > 0 and getPlayerVocation(ppl1.uid) == 2 and getPlayerVocation(ppl2.uid) == 3 and getPlayerVocation(ppl3.uid) == 1 and getPlayerVocation(ppl4.uid) == 4 then
Tu 9010 to Unique ID dzwigni.
typowy wygląd sali
tu linki do screenów questu :
http://img134.imageshack.us/my.php?image=tmp6809cn1.jpg
i Drugi link :
http://img134.imageshack.us/my.php?image=34eq2gz1.jpg
Pozdro
J@siu
Offline
No no. Może się przydać
Wielkie dzięki ;*
Offline
bardzo ciekawe ja dam 8/10 przyda sie
Offline
super 8/10 naprawde sie przyda
skad to sciagles?a moze zrobiles sam?
Offline