Zool
Banned User
Were is error ?
14:16 Zool [100]: first wayfarer addon
npc dont say nothing
Storage id
wayfarer = 22004
-- wayfarer
cc_way_f = 400
cc_way_s = 650
14:16 Zool [100]: first wayfarer addon
npc dont say nothing
Code:
-- Wayfarer START --
function WayfarerFirst(cid, message, keywords, parameters, node)
if(not npcHandler:isFocused(cid)) then
return false
end
if isPremium(cid) then
addon = getPlayerStorageValue(cid,wayfarer)
cc = 400
if addon == -1 then
if getPlayerItemCount(cid,2160) >= cc then
if doPlayerRemoveItem(cid,2160,cc) then
npcHandler:say('Here you go!', cid)
doSendMagicEffect(getCreaturePosition(cid), 13)
doPlayerAddOutfit(cid, 366, 1)
doPlayerAddOutfit(cid, 367, 1)
setPlayerStorageValue(cid,wayfarer,1)
end
else
npcHandler:say('You do not have all the required items.', cid)
end
else
npcHandler:say('You have already earned this addon!', cid)
end
end
end
function wayfarerSecond(cid, message, keywords, parameters, node)
if(not npcHandler:isFocused(cid)) then
return false
end
if isPremium(cid) then
addon = getPlayerStorageValue(cid,wayfarer+1)
cc = 650
if addon == -1 then
if getPlayerItemCount(cid,2160) >= cc then
if doPlayerRemoveItem(cid,2160,cc) then
npcHandler:say('Here you go!', cid)
doSendMagicEffect(getCreaturePosition(cid), 13)
doPlayerAddOutfit(cid, 366, 2)
doPlayerAddOutfit(cid, 367, 2)
setPlayerStorageValue(cid,wayfarer+1,1)
end
else
npcHandler:say('You do not have all the required items.', cid)
end
else
npcHandler:say('You have already earned this addon!', cid)
end
end
end
-- Wayfarer END --
Storage id
wayfarer = 22004
-- wayfarer
cc_way_f = 400
cc_way_s = 650