What's new

Questy .

Status
Not open for further replies.

BartaSs

Active User
Joined
Jul 9, 2008
Messages
70
Reaction score
4
Witam mam silnik wodbo i mam taki problem , jak chce dodac nowego questa to dale skrzynie na mape wpisujes unique id zapisuje i jak chcem go wykonac to nic mi nie daje ; / tak samo robielm questa z jedyn w poradnikow tu na forum ale i tak nie dziala ; / wie ktos moze jak sie je dodaje .? za pomoc reput .!:thx::thx:
 

ArtekXD

Active User
Joined
Jun 11, 2008
Messages
57
Reaction score
1
Odp: Questy .

Quest masz na my?li skrzynk?? w kt?rej s? na rzeczy?
 

MappingFOR

Advanced User
Joined
Apr 3, 2009
Messages
431
Reaction score
18
Odp: Questy .

hah... to nie yourots...

Wejd? do "\data\actions\actions.xml" i dodaj linijk?:
<action uniqueid="uniqueidskrzyni" script="twojanazwa.lua" />
W "\data\actions\scripts" stw?rz plik "twojanazwa.lua" i wklej do niego:
function onUse(cid, item, frompos, item2, topos)
if item.uid == uniqueidskrzyni then
queststatus = getPlayerStorageValue(cid,wybranestoragevalue)
if queststatus == -1 then
doPlayerSendTextMessage(cid,22,"Tekst podczas brania nagrody")
doPlayerAddItem(cid,idnagrody,1)
setPlayerStorageValue(cid,wybranestoragevalue,1)
else
doPlayerSendTextMessage(cid,22,"Je?li ju? wykonane")
end
end

return TRUE
end
 
Status
Not open for further replies.
Top