• 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!
  • 2026 staff recruitment is open! Check it out and consider applying!

How to make quest that gives experience?

Maybe you make an Exp scroll as reward at the end at the quest. And you make an different exp scroll for everyquest. But then its the problem how to make an exp scroll<_<

(Rep++ If i helped:thumbup:)
 
Hm.. i would prefer that quest gives experience, to player which done quest. If it would gives exp scroll, someone would give it to mainchar, by doing it with noobchars, so it's not good thing for me, but repp to u. ++
 
Code:
function onUse (cid, item, fromPos ,item2 ,itemEx, toPos)
if item.uid == 6000
else
doPlayerAddExperience (cid,1000) 
doPlayerSetStorageValue (cid,2222)
else
doPlayerSendTextMessage(cid,25, "You have gained 1000 experience"
else
return 0
end
return 1
end

What you think about this one?
 
Code:
function onUse(cid,item,fromPosition,itemEx,toPosition)
local t,v = {s=[COLOR="Red"]5102[/COLOR],xp=[COLOR="Red"]1500[/COLOR]},getThingPos(cid) -- first one is [COLOR="Red"]storageValue[/COLOR], second one is [COLOR="Red"]experience [/COLOR]gained.
	if getPlayerStorageValue(cid,t.s) < 1 then
		doPlayerAddExperience(cid,t.xp)
		doSendMagicEffect(v,12)
		setPlayerStorageValue(cid,t.s,1)
	else
		doPlayerSendCancel(cid,'This chest is empty.')
	end
	return true
end
 
You could start off by studying LUA and use advanced LUA scripts. And it must be unique as well, because, how fun is it to do a quest that you've already done on another open-tibia server before?

Also, the structure of the quest must be planned and pre-made as well.
 
Back
Top