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:
Great, now we are waiting for NPC system.
As far I know Jiddo system is no more supported.
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
I can use:
...or no?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
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