qwasniak
Advanced User
- Joined
- May 9, 2013
- Messages
- 302
- Reaction score
- 7
Cze??.
Chce wam pokaza? m?j pierwszy skrypt, a mianowicie jest to Teleport Scroll
[LUA]function onUse(cid, item, fromPos, itemEx, toPos)
local tp = {x=1050,y=1050,z=7}
local time = 3 -- w minutach
return getPlayerStorageValue(cid,12345) <= os.time() and doTeleportThing(cid,tp) and doPlayerSendTextMessage(cid, 22, "Jestesmy na miejscu!") and setPlayerStorageValue(cid, 12345, os.time() + (time * 1000 * 60)) and true or doSendMagicEffect(getPlayerPosition(cid),2) and doPlayerSendTextMessage(cid, 22, "Kolejny teleport za trzy minuty !")
end[/LUA]
Zmiany :
[LUA]local tp = {x=1050,y=1050,z=7} < Pozycja ( to chyba wiadomo )
local time = 3 -- w minutach < Czas [/LUA]
- i Linijka do Actions : [LUA]<action itemid="xxxx" event="script" value="xxxx/xxxx.lua" />[/LUA]
To chyba Tyle
Pozdrawiam serdecznie, my?le ?e si? komu? spodoba i zostawi mo?e reputka 
Chce wam pokaza? m?j pierwszy skrypt, a mianowicie jest to Teleport Scroll
[LUA]function onUse(cid, item, fromPos, itemEx, toPos)
local tp = {x=1050,y=1050,z=7}
local time = 3 -- w minutach
return getPlayerStorageValue(cid,12345) <= os.time() and doTeleportThing(cid,tp) and doPlayerSendTextMessage(cid, 22, "Jestesmy na miejscu!") and setPlayerStorageValue(cid, 12345, os.time() + (time * 1000 * 60)) and true or doSendMagicEffect(getPlayerPosition(cid),2) and doPlayerSendTextMessage(cid, 22, "Kolejny teleport za trzy minuty !")
end[/LUA]
Zmiany :
[LUA]local tp = {x=1050,y=1050,z=7} < Pozycja ( to chyba wiadomo )
local time = 3 -- w minutach < Czas [/LUA]
- i Linijka do Actions : [LUA]<action itemid="xxxx" event="script" value="xxxx/xxxx.lua" />[/LUA]
To chyba Tyle