Follow along with the video below to see how to install our site as a web app on your home screen.
Notka: This feature may not be available in some browsers.

btw, usu? dopiskifunction onUse(cid, item, frompos, item2, topos)
doSendMagicEffect(cid, frompos, 2)
doPlayerSay(cid, 'Bufff...',16) -- jaki tekst ma si? pokazywa?
doRemoveItem(item.uid) -- czy ma si? ko?czy?
end
xxx= id items.<action itemid="xxx" script="cygaro.lua" />
P<attribute key="slotType" value="head"/>

local efekt = 5
local slot =
local idcigaro =
function onThink(interval, lastExecution, thinkInterval)
for i, v in ipairs(getPlayersOnline()) do
if getPlayerSlotItem(v, slot).itemid == idcigaro
doSendMagiceffect(v, efekt)
end
end
return true
end
wklej t? linijk?:</creaturescripts>
teraz wejd? do katalogu scripts i otw?rz plik login.lua. Przed<event type="think" name="PlayerThink" script="think.lua"/>
wklej:return TRUE
end
nast?pnie w tym samym katalogu stw?rz nowy plik o nazwie think.lua i wklej do niego:registerCreatureEvent(cid, "PlayerThink")
local storage_nr = 2500 -- STORAGE ID
local item_id = 2457 -- ID JOINTA
local time_between = 5 -- CZAS POMIEDZY BUCHAMI
local effect = 2 -- NUMER EFEKTU
local text = "Pofff!" -- TEKST JAKI MA SIE WYSWIETLIC
function onThink(cid, interval)
if getPlayerSlotItem(cid, CONST_SLOT_HEAD).itemid == item_id then
pos = getCreaturePosition(cid)
dir = getPlayerLookDir(cid)
if dir == NORTH then
pos.y = pos.y-1
elseif dir == SOUTH then
pos.y = pos.y+1
elseif dir == WEST then
pos.x = pos.x-1
else
pos.x = pos.x+1
end
storage_value = getPlayerStorageValue(cid, storage_nr)
if storage_value < 0 then
setPlayerStorageValue(cid, storage_nr, 0)
elseif storage_value >= time_between then
doSendMagicEffect(getCreaturePosition(cid),effect)
doSendMagicEffect(pos,effect)
doCreatureSay(cid, text, 19)
setPlayerStorageValue(cid, storage_nr, 0)
else
setPlayerStorageValue(cid, storage_nr, storage_value+1)
end
end
end