• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!
  • 2026 staff recruitment is open! Check it out and consider applying!

Quest TFS 8.62

Status
Not open for further replies.

Tom

New Member
Joined
Nov 5, 2008
Messages
40
Reaction score
0
Cze
Dzisiaj przenosiłem serwer z 8.54 na 8.62
Wszystkie questy, które w actionid mają 2000 i 2001 okej działają.
Natomiast te questy, które znajdują się w movements/actions jako skrypt, wywalają debuga gdy chce się je otworzyć.

Oto kilka przykładowych questów:

Na justice sekker :
Code:
-----------Config-----------
local message = "You have found a Justice Seeker!"
----------End Config---------

function onUse(cid, item, frompos, item2, topos)
if getPlayerStorageValue(cid,66666) == 1 then
doPlayerSendTextMessage(cid,25,"Gamemasters are not able to collect rewards from the quests.")
else
    if getPlayerStorageValue(cid,60360) == -1 then
        doPlayerAddItem(cid, 7390, 1)
        doPlayerSendTextMessage(cid,25,message)
        doSendMagicEffect(frompos, 12)
        setPlayerStorageValue(cid,60360,1)

    elseif getPlayerStorageValue(cid,60360) == 1 then
                doPlayerSendTextMessage(cid,25,"The chest is empty.")
        end
end
end
Yalahar legs:
Code:
-----------Config-----------
local message = "You have found a Yalahari Leg Piece and an Vampiric Crest."
----------End Config---------

function onUse(cid, item, frompos, item2, topos)
if getPlayerStorageValue(cid,66666) == 1 then
doPlayerSendTextMessage(cid,25,"Gamemasters are not able to collect rewards from the quests.")
else
    if getPlayerStorageValue(cid,60203) == -1 then
        doPlayerAddItem(cid, 9777, 1)
        doPlayerAddItem(cid, 9955, 1)
        doPlayerSendTextMessage(cid,25,message)
        doSendMagicEffect(frompos, 12)
        setPlayerStorageValue(cid,60203,1)

    elseif getPlayerStorageValue(cid,60203) == 1 then
                doPlayerSendTextMessage(cid,25,"The chest is empty.")
        end
end
end
Będę bardzo wdzięczny za pomoc.
Pozdrawiam
 
bo sie uzywa zmiennych dla typu wiadomosci, a nie numerkow, ktore sie zmieniaja, menz
 
A mógłbyś przekształcić jeden skrypt powyżej tak jak ty to mówisz
 
To moglby ktos przeksztalcic jeden z powyzszych skryptow, tak aby bylo dobrze?
 
Nie wiem o czym wy do mnie mówicie.. Jestem mapperem nie skrypterem.
 
Dobra już mniej więcej załapałem.
Zrobiłem tak:
-----------Config-----------
local message = "You have found a Justice Seeker!"
----------End Config---------

function onUse(cid, item, frompos, item2, topos)
if getPlayerStorageValue(cid,66666) == 1 then
doPlayerSendTextMessage(cid,MESSAGE_STATUS_CONSOLE_ORANGE,"Gamemasters are not able to collect rewards from the quests.")
else
if getPlayerStorageValue(cid,60360) == -1 then
doPlayerAddItem(cid, 7390, 1)
doPlayerSendTextMessage(cid,MESSAGE_STATUS_CONSOLE_ORANGE,message)
doSendMagicEffect(frompos, 12)
setPlayerStorageValue(cid,60360,1)

elseif getPlayerStorageValue(cid,60360) == 1 then
doPlayerSendTextMessage(cid,MESSAGE_STATUS_CONSOLE_ORANGE,"The chest is empty.")
end
end
end

I jak otwieram skrzynkę to nic się nie dzieje, tylko napis w konsoli this chest is empty, ale za to już nie ma debuga xD
 
jak ja już otworzyłeś wcześniej to dodał ci się storage i drugi raz jej nie otworzysz
 
Dobra problem rozwiązany. Dzięki wszystkim za pomoc.
@up
Dopiero się skapnąłem ;D Można zamknąć
 
Status
Not open for further replies.
Back
Top