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

Vocation Quest

The Mapper

Just Imagine
Joined
Jul 22, 2009
Messages
182
Reaction score
2
I need a vocation quest that works for The Forgotten Server, version 0.3.6 (Crying Damson)please :$
 
Try this script, I am not good at this but it might work :D
Also it is not tested:thumbup:

Green: Change the uniqueid to whatever you want
Red: Replace the XXXX with the item ID you want the players to recive
Blue: Replace the X with the vocation ID
Purple: name of the script

add in action.xml
Code:
<action uniqueid="[COLOR="Lime"]90001[/COLOR]" event="script" value="[COLOR="Magenta"]vocationquest[/COLOR].lua"/>

vocationquest.lua
Code:
function onUse(cid, item, frompos, item2, topos)

	if item.uid == [COLOR="Lime"]90001[/COLOR] then
		if getPlayerVocation(cid) == [COLOR="Cyan"]X[/COLOR] and getPlayerStorageValue(cid,[COLOR="Lime"]90001[/COLOR]) == -1 then
			doPlayerSendTextMessage(cid,25,"You have found a [COLOR="Red"]XXXX[/COLOR].")
			doPlayerAddItem(cid,[COLOR="Red"]XXXX[/COLOR],1)
			setPlayerStorageValue(cid,[COLOR="Lime"]90001[/COLOR],1)
		else
			doPlayerSendTextMessage(cid,25,"You have either done the quest or you are not the right vocation.")
		end
	end
	return TRUE
end
 
Back
Top