What's new

Skrypty & Kody TIBIA 7.6 Skrypt - cos nie dzia??.

Status
Not open for further replies.

Budowlan

Advanced User
Joined
Feb 10, 2011
Messages
286
Reaction score
0
Witam czy mo?e mi kto? powiedzie? dlaczego ten skrypt nie dzia?a, i poprawi? jak mo?na?

[LUA]function onUse(cid, item, frompos, item2, topos)
local exhausted_seconds = 15
local exhausted_storagevalue = 1267
if(os.time() > getPlayerStorageValue(cid, exhausted_storagevalue)) then
if item.uid == 8999 then
if isZombieActive() ~= 1 then
doPlayerSendTextMessage(cid, 22, "Musisz poczekac az zombie sie zacznie!")
else
topos = {x=1282, y=255, z=6}
doPlayerSendTextMessage(cid, 22, "Jestes na zombie!")
setPlayerStorageValue(cid, exhausted_storagevalue, os.time() + exhausted_seconds)
doTeleportThing(cid,topos)
end
else
doPlayerSendTextMessage(cid, 22, "Posagu mozna uzywac co godzine!")
end
end
return 1
end
[/LUA]
 

#NOOB

Senior User
Joined
May 25, 2014
Messages
901
Reaction score
89
Odp: TIBIA 7.6 Skrypt - cos nie dzia??.

Jakie? konkretniejsze info? Jakie objawy, b??dy w konsoli? -,-
 

Ciamciaj Bigos

ก้้้้้้&
Joined
Jun 6, 2013
Messages
2,081
Reaction score
192
Odp: TIBIA 7.6 Skrypt - cos nie dzia??.

Bledy w silniku jakies istnieja? Poza tym doPlayerSendTextMessage(cid, 22, "Posagu mozna uzywac co godzine!") zadziala jesli item.uid ~= 8999, a nie jesli nie minie godzina.
 

#NOOB

Senior User
Joined
May 25, 2014
Messages
901
Reaction score
89
Odp: TIBIA 7.6 Skrypt - cos nie dzia??.

Spr?buj tego:
[Lua]local exhausted_seconds = 15
local exhausted_storagevalue = 1267

function onUse(cid, item, frompos, item2, topos)
if item.uid == 8999 then
if(os.time() > getPlayerStorageValue(cid, exhausted_storagevalue)) then
if isZombieActive() ~= 1 then
doPlayerSendTextMessage(cid, 22, "Musisz poczekac az zombie sie zacznie!")
else
topos = {x=1282, y=255, z=6}
doPlayerSendTextMessage(cid, 22, "Jestes na zombie!")
setPlayerStorageValue(cid, exhausted_storagevalue, os.time() + exhausted_seconds)
doTeleportThing(cid,topos)
end
else
doPlayerSendTextMessage(cid, 22, "Posagu mozna uzywac co godzine!")
end
end

return 1
end[/Lua]
 
Status
Not open for further replies.
Top