sensibles - 2007-08-23 20:09:07

Witam! ;)
Mam OTS'a i dorabiam mapke, teraz robie Poi i potrzebuje by kto¶ mi wytłumaczył jak sie robi skrypty z dĽwigniami . Chodzi mi oto, że jak przestawiasz dĽwignię znika jaki¶ kamien lub ¶ciana.

patryk12 - 2007-08-23 20:38:54

Kod:

function onUse(cid, item, frompos, item2, topos)
gatepos = {x=564, y=805, z=9, stackpos=1} pozycja kamienia
getgate = getThingfromPos(gatepos)

if item.uid == 1002 and item.itemid == 1945 and getgate.itemid == 3361 then --id sciany mozesz to zmienic
doRemoveItem(getgate.uid,1)
doTransformItem(item.uid,item.itemid+1)
elseif item.uid == 1002 and item.itemid == 1946 and getgate.itemid == 0 then
doCreateItem(3361,1,gatepos) -- id sciany tez mozesz zmienic 
doTransformItem(item.uid,item.itemid-1)
else
doPlayerSendCancel(cid,"Sorry not possible.")
end
  return 1
  end

w dzwigni wpisz 1002 i teraz dzwignia usuwa sciane o id3361 i w actions.xml

Kod:

<action uniqueid="1002" script="poi18.lua" />

a zapisz to w data-->action-->script jako poi18.lua

sensibles - 2007-08-24 08:43:00

Bardzo dziękuję!!!!!! BARDZOOOOOOOO mi pomogłe¶!! :)

przegrywanie kaset vhs w polsce