- Dołączył
- Kwiecień 27, 2008
- Posty
- 18
- Liczba reakcji
- 0
Potrzebuje pomocy przy skrypcie pr?bowa?em sam ale co? mi nie idzie chodzi o to ?eby po u?o?eniu 4 d?wigni w odpowiednie kolejno?? mo?na by?o by u?y? 5 d?wigni kt?ra przyzywa potwora zamieszcz? to co uda?o mi si? zrobi?
Kod:
function onUse(cid, item, frompos, item2, topos)
switch1pos = {x=1241, y=766, z=9, stackpos=1}
switch2pos = {x=1242, y=766, z=9, stackpos=1}
switch3pos = {x=1245, y=766, z=9, stackpos=1}
switch4pos = {x=1245, y=766, z=9, stackpos=1}
Bosspos = {x=1243, y=770, z=9, stackpos=1}
getswitch1 = getThingfromPos(switch1pos)
getswitch2 = getThingfromPos(switch2pos)
getswitch3 = getThingfromPos(switch3pos)
getswitch4 = getThingfromPos(switch4pos)
ladder = getCreature(pos)(Bosspos)
if item.actionid == 10825 and item.itemid == 1945 and
getswitch1.itemid == 1946 and
getswitch2.itemid == 1946 and
getswitch3.itemid == 1946 and
getswitch4.itemid == 1946 and
doCreateMonster(Onyxia (Boss),Bosspos)
elseif item.actionid == 10825 and item.itemid == 1946 then
doTransformItem(item.uid,item.itemid-1)
else
return 0
end
return 1
end