Zool
Banned User
Witam mam problem z addonerem : Varkhal
czesto mu sie w glowie 'pierdoli' i cos sie kreci :/
np :
a gdy podchodze do niego :
12:17 Zool [683]: first summoner addon
12:17 Varkhal: To achieve the first summoner addon you need to give me a winning lottery ticket if you are a male. Otherwise, you need to give me all kind of wands and rods, 10 magic sulphurs, 20 ankhs and a soul stone. Do you have it with you?
help
czesto mu sie w glowie 'pierdoli' i cos sie kreci :/
np :
Code:
-- SUMMONER START --
function SummonerFirst(cid, message, keywords, parameters, node)
if(not npcHandler:isFocused(cid)) then
return false
end
if isPremium(cid) then
addon = getPlayerStorageValue(cid,summoner)
if addon == -1 then
if getPlayerSex(cid) == 1 then
if getPlayerItemCount(cid,5958) >= 1 then
if doPlayerRemoveItem(cid,5958,1) then
npcHandler:say('Here you go!', cid)
doSendMagicEffect(getCreaturePosition(cid), 13)
doPlayerAddOutfit(cid, 133, 1)
doPlayerAddOutfit(cid, 138, 1)
setPlayerStorageValue(cid,summoner,1)
end
else
npcHandler:say('You do not have all the required items.', cid)
end
elseif getPlayerSex(cid) == 0 then
if getPlayerItemCount(cid,2181) >= 1 and getPlayerItemCount(cid,2182) >= 1 and getPlayerItemCount(cid,2183) >= 1 and getPlayerItemCount(cid,2185) >= 1 and getPlayerItemCount(cid,2186) >= 1 and getPlayerItemCount(cid,2187) >= 1 and getPlayerItemCount(cid,2188) >= 1 and getPlayerItemCount(cid,2189) >= 1 and getPlayerItemCount(cid,2190) >= 1 and getPlayerItemCount(cid,2191) >= 1 and getPlayerItemCount(cid,5904) >= 10 and getPlayerItemCount(cid,2193) >= 20 and getPlayerItemCount(cid,5809) >= 1 then
if doPlayerRemoveItem(cid,2181,1) and doPlayerRemoveItem(cid,2182,1) and doPlayerRemoveItem(cid,2183,1) and doPlayerRemoveItem(cid,2185,1) and doPlayerRemoveItem(cid,2186,1) and doPlayerRemoveItem(cid,2187,1) and doPlayerRemoveItem(cid,2188,1) and doPlayerRemoveItem(cid,2189,1) and doPlayerRemoveItem(cid,2190,1) and doPlayerRemoveItem(cid,2191,1) and doPlayerRemoveItem(cid,5904,10) and doPlayerRemoveItem(cid,2193,20) and doPlayerRemoveItem(cid,5809,1) then
npcHandler:say('Here you go!', cid)
doSendMagicEffect(getCreaturePosition(cid), 13)
doPlayerAddOutfit(cid, 133, 1)
doPlayerAddOutfit(cid, 138, 1)
setPlayerStorageValue(cid,summoner,1)
end
else
npcHandler:say('You do not have all the required items.', cid)
end
end
else
npcHandler:say('You have already earned this addon!', cid)
end
end
end
function SummonerSecond(cid, message, keywords, parameters, node)
if(not npcHandler:isFocused(cid)) then
return false
end
if isPremium(cid) then
addon = getPlayerStorageValue(cid,summoner+1)
if addon == -1 then
if getPlayerSex(cid) == 1 then
if getPlayerItemCount(cid,5894) >= 70 and getPlayerItemCount(cid,5911) >= 20 and getPlayerItemCount(cid,5883) >= 40 and getPlayerItemCount(cid,5922) >= 35 and getPlayerItemCount(cid,5886) >= 10 and getPlayerItemCount(cid,5881) >= 60 and getPlayerItemCount(cid,5882) >= 40 and getPlayerItemCount(cid,5904) >= 15 and getPlayerItemCount(cid,5905) >= 30 then
if doPlayerRemoveItem(cid,5894,70) and doPlayerRemoveItem(cid,5911,20) and doPlayerRemoveItem(cid,5883,40) and doPlayerRemoveItem(cid,5922,35) and doPlayerRemoveItem(cid,5886,10) and doPlayerRemoveItem(cid,5881,60) and doPlayerRemoveItem(cid,5882,40) and doPlayerRemoveItem(cid,5904,15) and doPlayerRemoveItem(cid,5905,30) then
npcHandler:say('Here you go!', cid)
doSendMagicEffect(getCreaturePosition(cid), 13)
doPlayerAddOutfit(cid, 133, 2)
doPlayerAddOutfit(cid, 138, 2)
setPlayerStorageValue(cid,summoner+1,1)
end
else
npcHandler:say('You do not have all the required items.', cid)
end
elseif getPlayerSex(cid) == 0 then
if getPlayerItemCount(cid,5903) >= 1 then
if doPlayerRemoveItem(cid,5903,1) then
npcHandler:say('Here you go!', cid)
doSendMagicEffect(getCreaturePosition(cid), 13)
doPlayerAddOutfit(cid, 133, 2)
doPlayerAddOutfit(cid, 138, 2)
setPlayerStorageValue(cid,summoner+1,1)
end
else
npcHandler:say('You do not have all the required items.', cid)
end
end
else
npcHandler:say('You have already earned this addon!', cid)
end
end
end
-- SUMMONER END --
12:17 Zool [683]: first summoner addon
12:17 Varkhal: To achieve the first summoner addon you need to give me a winning lottery ticket if you are a male. Otherwise, you need to give me all kind of wands and rods, 10 magic sulphurs, 20 ankhs and a soul stone. Do you have it with you?