What's new

Jak zrobi? w?asny quest z skrzynk? ? [8.1]

Status
Not open for further replies.

ogi3434

New User
Joined
Apr 19, 2009
Messages
9
Reaction score
0
Szuka?em po necie i znalaz?em takie co?

function onUse(cid, item, frompos, item2, topos)
f item.uid == 1002 then
queststatus = getPlayerStorageValue(cid,1002)
if queststatus == -1 then
doPlayerSendTextMessage(cid,22,"Znalazles plaszcz.")
doPlayerAddItem(cid,2651,1)
doSendMagicEffect(topos,55)
setPlayerStorageValue(cid,1002,1)
else
doPlayerSendTextMessage(cid,22,"Ta skrzynia jest pusta.")
end
else
return 0
end
return 1
end

<action itemid="1002" script="test.lua" />

Tylko nic tu nie jest wyt?umaczone :(
M?g?by mi kto? wyt?umaczy? co gdzie wpisywa? ?
 

samsung12

User
Joined
Mar 21, 2009
Messages
10
Reaction score
0
Odp: Jak zrobi? w?asny quest z skrzynk? ? [8.1]

Ja potrzebuje skrypt ?ebym widzia? po ile si? uham na 8.10
 

Uwaga Meteor

Active User
Joined
Aug 23, 2011
Messages
62
Reaction score
3
Odp: Jak zrobi? w?asny quest z skrzynk? ? [8.1]

Dam ci nowy bo ten jaki? zryty:
Do Data/actions/scripts zrob nowy plik np Quest121

Wklej do niego:
function onUse(cid, item, frompos, item2, topos)
prize = item.uid
count = item.actionid

if prize > 0 and prize < 7000 then
queststatus = getPlayerStorageValue(cid,prize)

if queststatus == -1 then
if count > 1 then
doPlayerSendTextMessage(cid,22,'You have found '.. count ..' of ' .. getItemName(prize) .. '.')
doPlayerAddItem(cid,prize,count)
setPlayerStorageValue(cid,prize,1)
else
doPlayerSendTextMessage(cid,22,'You have found a ' .. getItemName(prize) .. '.')
doPlayerAddItem(cid,prize,1)
setPlayerStorageValue(cid,prize,1)
end
else
doPlayerSendTextMessage(cid,22,"It is empty.")
end

return 1
else
return 0
end
end

Potem do Actions.XML Dodaj Linijke:

<action uniqueid="9999" script="Quest121.lua" />

Potem Do kazdej Skrzyni

Action ID: 9999
a na dole ID itemu

Pomog?em ci na 100% ;]
 

ogi3434

New User
Joined
Apr 19, 2009
Messages
9
Reaction score
0
Odp: Jak zrobi? w?asny quest z skrzynk? ? [8.1]

Ok, ale ten kod co mi da?e? , mo?esz mi jeszcze to wszystko opisa? ? Nie rozumie co zrobi? z tym prize i w og?le tym wszystkim
 

Uwaga Meteor

Active User
Joined
Aug 23, 2011
Messages
62
Reaction score
3
Odp: Jak zrobi? w?asny quest z skrzynk? ? [8.1]

w tym skrypcie nic sie nie robi jak go zaladujesz na ots tlyko w map editorze dawaj ID:9999 i numer itemu tyle.
 

ogi3434

New User
Joined
Apr 19, 2009
Messages
9
Reaction score
0
Odp: Jak zrobi? w?asny quest z skrzynk? ? [8.1]

A jak np dam id od "minotaur leather" , to jak zrobi? by nie dostawa? "1" sztuki tylko "20" ?
 

Uwaga Meteor

Active User
Joined
Aug 23, 2011
Messages
62
Reaction score
3
Odp: Jak zrobi? w?asny quest z skrzynk? ? [8.1]

Ten Quest Ten item Da x100 :) nie musisz nic przerabia? :)
 
Status
Not open for further replies.
Top