What's new

Quest skrypt

Status
Not open for further replies.

vegetroex

Active User
Joined
Dec 14, 2012
Messages
78
Reaction score
2
[LUA] function onUse(cid, item, frompos, item2, topos)

if item.uid == 50009 then
queststatus = getPlayerStorageValue(cid,50009)
if queststatus == -1 then
doPlayerSendTextMessage(cid,22,'You have got start eq.')
doPlayerAddItem(cid,id,ilosc)
doPlayerAddItem(cid,id,ilosc)
doPlayerAddItem(cid,id itema,ilosc)
setPlayerStorageValue(cid,50009,1)
else
doPlayerSendTextMessage(cid,22,"It is empty.")
end
return 1
else
return 0
end
end[/LUA]

To jest moj pierwszy skrypt chce zebyscie oceniali

PS : Ten skrypt jest na startowe eq ;c
 

kuba1418

Banned
Joined
Apr 12, 2008
Messages
178
Reaction score
17
Odp: Quest skrypt

Nie?le! Jak zaczynasz pisa? skrypty to super ale nie wrzucaj odrazu wszystkiego na forum poniewa? dodanie do skryptu [LUA] doPlayerSendTextMessage(cid,22,'You have got start eq.')
doPlayerAddItem(cid,id,ilosc)
doPlayerAddItem(cid,id,ilosc)[/LUA]
Nie nazwa? bym twoj? w?asno?ci?, a po za tym skrzynek na questa jest tu wi?cej ni? posiadam post?w. A tak po za tematem to nie rozumiem dlaczego ludzie nadal u?ywaj? pojedynczych skrzynek zamiast podstawowych system?w np. tych w tfs.
 

DanJ93

ElfBot Helper
Joined
Jan 18, 2009
Messages
2,631
Reaction score
200
Odp: Quest skrypt

w jakim celu to
[lua] else
return 0[/lua]
? actions.xml si? k?ania
 

Logit3ch

Advanced User
Joined
Oct 2, 2013
Messages
165
Reaction score
6
Odp: Quest skrypt

Hmm, na poczatku zrob np. local storage = getPlayerStorageValue, nie po ifie.
Nie rob dwoch ifow tylko zrob jeden " if bla bla and bla bla then ".
Zr?b tak?e tabelk? kt?ra Ci u?atwi znacznie ?ycie.. zr?b j? na pocz?tku skryptu :

local item = {id, id, id}
 
Status
Not open for further replies.
Top