• 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!
  • New resources must be posted under Resources tab. A discussion thread will be created automatically, you can't open threads manually anymore.

Action Advanced Quest System

Nostradamus

Member
Joined
Jun 2, 2007
Messages
219
Reaction score
6
Content removed, i don't want to share my knowleagement with a retarded forum staff. Feel free to contact me if you still want that.
 
Last edited:
@mkq
There is no function to handle with quest logs. In TFS they use a XML file for that.
 
Looks very good, I have to ask is it work with tfs 0.2? sorry if u wrote it but I just dont see it
 
As far I know Jiddo system is no more supported.
 
Last edited:
I can use:
Code:
function onUse(cid, item, fromPosition, itemEx, toPosition)
 local p = {}
	if getPlayerGroupId(cid) > 2 then
	if getPlayerStorageValue(cid, 2172) == -1 then
	   p.message = {"You have found a Bronze Amulet.", MESSAGE_INFO_DESCR}
	   p.item = {[2172] = {1}}
    else
	   p.message = {"It is empty.", MESSAGE_INFO_DESCR}
end
    else
	   doPlayerSendCancel(cid, "You are not a staff member.")
end
 Quest:new(cid, 2172, p)
 return TRUE
end
...or no?
 
Last edited:
I can use:
Code:
function onUse(cid, item, fromPosition, itemEx, toPosition)
 local p = {}
	if getPlayerGroupId(cid) > 2 then
	if getPlayerStorageValue(cid, 2172) == -1 then
	   p.message = {"You have found a Bronze Amulet.", MESSAGE_INFO_DESCR}
	   p.item = {[2172] = {1}}
    else
	   p.message = {"It is empty.", MESSAGE_INFO_DESCR}
end
    else
	   doPlayerSendCancel(cid, "You are not a staff member.")
end
 Quest:new(cid, 2172, p)
 return TRUE
end
...or no?

use this

PHP:
function onUse(cid, item, fromPosition, itemEx, toPosition)
	local p = {}
	if getPlayerGroupId(cid) > 2 then
		p.message = {"You have found a Bronze Amulet.", MESSAGE_INFO_DESCR}
		p.item = {[2172] = {1}}
	else
		p.message = {"You are not a staff member.", MESSAGE_INFO_DESCR}
	end
	
	Quest:new(cid, 2172, p)
	
	return TRUE
end
 
[08/03/2010 21:05:24] data/lib/function.lua:877: attempt to perform arithmetic on local 'item' (a table value)
[08/03/2010 21:05:24] stack traceback:
[08/03/2010 21:05:24] data/lib/function.lua:877: in function 'capItems'
[08/03/2010 21:05:24] data/lib/function.lua:903: in function 'addItems'
[08/03/2010 21:05:24] data/lib/function.lua:738: in function 'start'
[08/03/2010 21:05:24] data/lib/function.lua:645: in function 'new'
[08/03/2010 21:05:24] data/actions/scripts/behemot.lua:6: in function <data/actions/scripts/behemot.lua:1>

Help plx ?
 
Back
Top