• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!

Quest

hiagante

New Member
Joined
Sep 25, 2008
Messages
21
Reaction score
0
I need to know how its a better script to make quest who show me??

all quest i make still buged...

example i made a demon shield quest...

but when i am open the box dont have you have a demon shield, only the shield stay on the box..

please if one know how to make quest 100%...

say me

:)
 
i WANT TO KNOW HOW MADE A PERFECT QUEST

not buged, the quest is one crystal arrows

look the script


(.lua)

function onUse(cid, item, frompos, item2, topos)

if item.uid == 1995 then
queststatus = getPlayerStorageValue(cid,2352)
if queststatus == -1 then
doPlayerSendTextMessage(cid,22,"You have found the Crystal Arrow.")
doPlayerAddItem(cid,2352,1)
setPlayerStorageValue(cid,2352,1)
else
doPlayerSendTextMessage(cid,22,"It is empty.")
end
else
return 0
end

return 1
end

(in actions.xml)

<action uniqueid="1995" script="chesttest.lua" />

but when open the box dont have the msg

You have found the Crystal Arrow.

One the iten on box...
 
Check it :

Code:
function onUse(cid, item, fromPosition, itemEx, toPosition)
   	if item.uid == 1995 then
		queststatus = getPlayerStorageValue(cid,2352)
   		if queststatus == -1 then
   			doPlayerSendTextMessage(cid,MESSAGE_INFO_DESCR, "You have found the Crystal Arrow.")
   			doPlayerAddItem(cid,2352,1)
   			setPlayerStorageValue(cid,2352,1)
   		else
   			doPlayerSendTextMessage(cid,MESSAGE_INFO_DESCR, "It is empty.")
   		end
     return TRUE
end

If I help u please give me a rep point. ;)
 
Last edited:
Back
Top