twozymy plik lua o nazwie sleepbear wklejamy to: --function Sleeping bear By proxer-- function onUse(cid, item, frompos, item2, topos) sorte = math.random(1,4) pos = getPlayerPosition(cid) if item.itemid == 7177 then if sorte == 1 then name = getPlayerName(cid)doCreatureSay(cid, 'Why do you try to wake up me? '..name..'.' ,TALKTYPE_ORANGE_1) elseif sorte == 2 then name = getPlayerName(cid)doCreatureSay(cid, 'Please i dont have work today '..name..'.' ,TALKTYPE_ORANGE_1) elseif sorte == 3 then name = getPlayerName(cid)doCreatureSay(cid, 'One hour Please '..name..'.' ,TALKTYPE_ORANGE_1) elseif sorte == 4 then name = getPlayerName(cid)doCreatureSay(cid, 'Groooar '..name..'.' ,TALKTYPE_ORANGE_1) doSendMagicEffect(topos,4) else end end return 1 end tlumacze o co chodzi a wiec tak zmieniac mozesz tylko w takich zdaniach 1 zecz name = getPlayerName(cid)doCreatureSay(cid, 'TO MOZESZ ZMIENIC Groooar '..name..'.' ,TALKTYPE_ORANGE_1) if item.itemid == 7177 then << item id niedzwiedzia spiacego do niedzwiedzia nic nie wpisujemy stawiamy go sobie poprostu na mapce actions.xml wklejamy to: <action itemid="7177" script="sleepbear.lua"/>
|