What's new

Pomoc z Questem

daw1516

Active User
Joined
Mar 4, 2010
Messages
59
Reaction score
1
Witam potrzebuje pomocy przy questach

problem w tym jest ze jak wpisuje id itemku do questa to na otsie quest jest pusty
 

Bombardier

User
Joined
Mar 21, 2010
Messages
10
Reaction score
1
Odp: Pomoc z Questem

Mam ten sam problem, po otwarciu boxa skrzynka jest pusta. Przylanczam sie do pytania kolegi.
Id przedmiotu wpisuje w unique id.
 

Ventera

User
Joined
Jul 15, 2010
Messages
12
Reaction score
1
Odp: Pomoc z Questem

Dok?adnie te? mam z tym problem.Prosz? o jak najszybsz? pomoc.Za pomoc dam reputa.
 

Jazper

Advanced User
Joined
Nov 22, 2009
Messages
448
Reaction score
31
Odp: Pomoc z Questem

Takie to trudne?
omg
A wiec prosze:

data/actions/script
stworz plik o dowolnej nazwie np. quest1
Code:
function onUse(cid, item, frompos, item2, topos)
if item.uid == [B]9010[/B] then
queststatus = getPlayerStorageValue(cid,[B]9010[/B])
if queststatus == -1 then
doPlayerSendTextMessage(cid,22,"Znalazles Serpent Sword.")
doPlayerAddItem(cid,[COLOR="DarkOrange"]2409[/COLOR],[COLOR="Red"]1[/COLOR])
setPlayerStorageValue(cid,[B]9010[/B],1)
else
doPlayerSendTextMessage(cid,22,"It is empty.")
end
return 1
else
return 0
end
end
- 9010 w tych polach wpisz to co wpisa?e? w polu unique id w skrzynce
- 2409 tutaj wpisz id przedmiotu
- 1 - ilo?? item?w np. 1 cc lub 5 - 5cc itd.

Teraz przejdzmy do actions.xml

w dowolnym miejscu wklej to
Code:
<action uniqueid="9010" script="[COLOR="Lime"]quest1[/COLOR].lua"/>

my?l?, ?e z reszt? bd wiedzie?


//down nie wiem o co tobie chodzi, ale napisa?e? to samo co ja ...
 
Last edited:

Gremarek

Active User
Joined
Apr 21, 2010
Messages
111
Reaction score
5
Odp: Pomoc z Questem

function onUse(cid, item, frompos, item2, topos)
if item.uid == 6010 then
queststatus = getPlayerStorageValue(cid,6010)
if queststatus == -1 then
doPlayerSendTextMessage(cid,22,"Znalazles Spell rune.")
doPlayerAddItem(cid,2270,1)
setPlayerStorageValue(cid,6010,1)
else
doPlayerSendTextMessage(cid,22,"It is empty.")
end
return 1
else
return 0
end
end

To nie jest trudne !!
<action uniqueid="6010" script="quest1.lua"/>
 

daw1516

Active User
Joined
Mar 4, 2010
Messages
59
Reaction score
1
Odp: Pomoc z Questem

zrobi?em tak jak obaj pokazali?cie

za 1 razem co zrobi?em to b??d w silniku w action
a za 2 razem by?o dobrze tylko znowu puste boxy by?y
 

Haloon19

Active User
Joined
Jul 21, 2010
Messages
65
Reaction score
1
Odp: Pomoc z Questem

Code:
function onUse(cid, item, frompos, item2, topos)
  	-- Desert q 1
  	if item.uid == 34871 then
  		queststatus = getPlayerStorageValue(cid,34871)
  		if queststatus == -1 then
  			if getPlayerLevel(cid) >= 50 then
  				doPlayerSendTextMessage(cid,22,"You have found your reward.")
  				doPlayerAddItem(cid,2160,15)
  				setPlayerStorageValue(cid,34871,1)
  			else
  				doPlayerSendTextMessage(cid,22,"You need level 50 to get prize.")
  			end
  		else
  			doPlayerSendTextMessage(cid,22,"It is empty.")
  		end
  	end
end
 

daw1516

Active User
Joined
Mar 4, 2010
Messages
59
Reaction score
1
Odp: Pomoc z Questem

no nie mog? robi? tak jak wy mi pokazali?cie a dalej puste jest box prosz? wyt?umaczyc mi jak 5-io letniemu dziecku
 

Haloon19

Active User
Joined
Jul 21, 2010
Messages
65
Reaction score
1
Odp: Pomoc z Questem

do skrzynki musisz podac Unikue ID w przypadku mojego scryptu to 34871
 

daw1516

Active User
Joined
Mar 4, 2010
Messages
59
Reaction score
1
Odp: Pomoc z Questem

dzi?ki reput leci aha jeszcze jedno czy ten Unikue ID mo?na zmieni?
if item.uid == 9010 then
queststatus = getPlayerStorageValue(cid,9010)
 

Jazper

Advanced User
Joined
Nov 22, 2009
Messages
448
Reaction score
31
Odp: Pomoc z Questem

tak jak ja wytluscilem na czarno tak mozesz zmienic ;)
 

daw1516

Active User
Joined
Mar 4, 2010
Messages
59
Reaction score
1
Odp: Pomoc z Questem

ok dzi?ki reputy polecia?y ju? temat do zamkni?cia
 
Top