What's new

Quest na Spella

Status
Not open for further replies.

BuRcZyK

Senior User
Joined
Sep 2, 2010
Messages
834
Reaction score
35
Okej jak w temacie, prosz? o pomoc w zrobieniu spellu od storge 1996 wiadomo?? kt?ra ma si? wy?wietli? jak nie bd player mia? wykonanego questa "You need to do mission".
 

Dragonballfan

Banned
Joined
May 28, 2010
Messages
81
Reaction score
4
Odp: Quest na Spella

Wiem ?e to nie to samo ale... pr?buje pom?c :)

W actions/scripts- robimy plik o nazwie czar.lua


Jak si? nie myl? to tw?j skrypt powinien wygl?da? tak :

function onUse(cid, item, frompos, item2, topos)
if item.uid == 8558 then < uid skrzyni
queststatus = getPlayerStorageValue(cid,1996)
if queststatus == -1 then
doPlayerSendTextMessage(cid,22,"You need to do mission.")
doPlayerLearnSpell(cid, 'Nazwa spella (np: kamehameha')
setPlayerStorageValue(cid,8555,1)
else
doPlayerSendTextMessage(cid,22,"It is empty.")
end
elseif item.uid == 8559 then < uid skrzyni
queststatus = getPlayerStorageValue(cid,8556)
if queststatus == -1 then
doPlayerSendTextMessage(cid,22,"You need to do mission.")
doPlayerLearnSpell(cid, 'Nazwa spella')
setPlayerStorageValue(cid,1996,1)
else
doPlayerSendTextMessage(cid,22,"It is empty.")
end
else

-==-uid skrzyni.
-==-Nazwa spella jakiego chcemy si? nauczy? po quest:)

w actions.xml dodajemy te 2 linijki.

<action uniqueid="8559" script="czar.lua" />
<action uniqueid="8558" script="czar.lua" />

potem w skrzyni wystarczy wpisa? uid i ju?.

jak b?dzie jaki? problem pisz :)



function onUse(cid, item, frompos, item2, topos)
if item.uid == 8558 then
queststatus = getPlayerStorageValue(cid,8555)
if queststatus == -1 then
doPlayerSendTextMessage(cid,22,"You need to do mission.")
doPlayerLearnSpell(cid, 'np Genki dama')
setPlayerStorageValue(cid,1996,1)
else
doPlayerSendTextMessage(cid,22,"It is empty.")
end
elseif item.uid == 8559 then
queststatus = getPlayerStorageValue(cid,1996)
if queststatus == -1 then
doPlayerSendTextMessage(cid,22,"You need to do mission.")
doPlayerLearnSpell(cid, 'np renzoku energy dan')
setPlayerStorageValue(cid,8556,1)
else
doPlayerSendTextMessage(cid,22,"It is empty.")
end
else


je?eli chcemy doda? 1 spell to wystarczy w
actions.xml wklei? 1 linijk? np:
<action uniqueid="8558" script="czar.lua" />
to z czarem renzoku energy dan
wystarczy zmieni?.
je?eli 2 czar to wystarczy doda? to samo co grub? linijka ^ i zmienic uniqueid="8559"

----------------------------------
Pomog?em ? daj reput lub + :) dzi?kuje.
 
Last edited:

BuRcZyK

Senior User
Joined
Sep 2, 2010
Messages
834
Reaction score
35
Odp: Quest na Spella

Jest b??d
44669274.png
 

Dragonballfan

Banned
Joined
May 28, 2010
Messages
81
Reaction score
4
Odp: Quest na Spella

Jak widzisz nie ma znaku "<" wstaw go i ju? patrz ja z tym skryptem :




zobacz skrypt od pocz?tku (edytuj tylko)

function onUse(cid, item, frompos, item2, topos)
if item.uid == 8558 then
queststatus = getPlayerStorageValue(cid,8555)
if queststatus == -1 then
doPlayerSendTextMessage(cid,22,"You have Learn Spell.")
doPlayerLearnSpell(cid, 'mega power up')
setPlayerStorageValue(cid,8555,1)
else
doPlayerSendTextMessage(cid,22,"It is empty.")
end
elseif item.uid == 8559 then
queststatus = getPlayerStorageValue(cid,8556)
if queststatus == -1 then
doPlayerSendTextMessage(cid,22,"You have Learn Spell.")
doPlayerLearnSpell(cid, 'power up')
setPlayerStorageValue(cid,8556,1)
else
doPlayerSendTextMessage(cid,22,"It is empty.")
end
else
return 0
end
return 1
end


Actions.xml

<action uniqueid="8559" script="czar.lua" />
<action uniqueid="8558" script="czar.lua" />
 
Last edited:

BuRcZyK

Senior User
Joined
Sep 2, 2010
Messages
834
Reaction score
35
Odp: Quest na Spella

Kolejny b??d ale ja chce tylko dodatek do spellsa
 
Status
Not open for further replies.
Top