• 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 Script

Duvbo

New Member
Joined
Sep 8, 2011
Messages
71
Reaction score
0
I wanna make a quest that reward is "12648" but the item arent in RME so i cant but it in the quest box so i wonder if someone can make a action script for that ?.. i will try to learn more about scripting​
 
actions/scripts/quests/questname.lua
PHP:
function onUse(cid, item, frompos, item2, topos)
	if item.uid == 50024 then
		if getPlayerStorageValue(cid,50024) == -1 then
			doPlayerSendTextMessage(cid,25,"You have found a Item Name.")
			doPlayerAddItem(cid,12648,1)
			setPlayerStorageValue(cid,50024,1)
		else
			doPlayerSendTextMessage(cid,25,"This chest is empty. You've already done this quest!")
		end
	end
	return TRUE
end

Actions.xml:
PHP:
	<action uniqueid="50024" event="script" value="quests/questname.lua"/>
Add the box on the map with UniqueID: 50024
;)
 
Back
Top