Accus
Active User
- Joined
- Nov 29, 2009
- Messages
- 89
- Reaction score
- 11
Siema dzisiaj wam zaprezentuje Black Knight Quest. Skrypta znalazlem na Otland-zie, wiec odrazu mowie ze nie jest moj. Ja go tylko przekazuje wam uzytkownikom ;P
A wiec zacznijmy.
W data/actions/actions.xml wklejamy takie cos.
Pozniej w data/actions/scripts/black knight robimy nowy plik .lua i nazywamy go bkreward1.lua i wklejamy do niego ta zawartosc.
A nastepnie tworzymy kolejny plik i nazywamy go bkreward2.lua i to jego zawartosc.
Upwnijcie sie ze skrzynki maja te id :
Mam nadzieje ze sie przyda, dodalem ten skrypt bo nie widzialem go jescze tutaj na forum. Mozna go przerobic takze na inne nagrody.
A wiec zacznijmy.
W data/actions/actions.xml wklejamy takie cos.
Code:
<!-- Black Knight Quest-->
<action uniqueid="7518" script="black knight/bkreward1.lua" />
<action uniqueid="7519" script="black knight/bkreward2.lua" />
Pozniej w data/actions/scripts/black knight robimy nowy plik .lua i nazywamy go bkreward1.lua i wklejamy do niego ta zawartosc.
Code:
function onUse(cid, item, frompos, item2, topos)
if item.uid ==7518 then
queststatus = getPlayerStorageValue(cid,7618)
if queststatus == -1 then
doPlayerSendTextMessage(cid,22,"You have found a Crown Shield.")
doPlayerAddItem(cid,2519,1)
setPlayerStorageValue(cid,7618,1)
else
doPlayerSendTextMessage(cid,22,"You already done this quest.")
end
else
return 0
end
return 1
end
A nastepnie tworzymy kolejny plik i nazywamy go bkreward2.lua i to jego zawartosc.
Code:
function onUse(cid, item, frompos, item2, topos)
if item.uid ==7519 then
queststatus = getPlayerStorageValue(cid,7619)
if queststatus == -1 then
doPlayerSendTextMessage(cid,22,"You have found a Crown Armor.")
doPlayerAddItem(cid,2487,1)
setPlayerStorageValue(cid,7619,1)
else
doPlayerSendTextMessage(cid,22,"You already done this quest.")
end
else
return 0
end
return 1
end
Upwnijcie sie ze skrzynki maja te id :
Code:
[B]7519[/B] - crown armor
[B]7518[/B] - crown shield
Mam nadzieje ze sie przyda, dodalem ten skrypt bo nie widzialem go jescze tutaj na forum. Mozna go przerobic takze na inne nagrody.