I'm trying to make a quest door but I just simply don't make it work :/ I'm new to scripting
What I wanted to do is that an npc that gives an addon gives the right to enter the door after he collects the
items from the player, this is where i located the add creature event
doPlayerAddOutfit(cid, addoninfo.outfit_male, addoninfo.addon)
setPlayerStorageValue(cid,addoninfo.storageID,1)
npcHandler:say('Here you are.', cid)
doCreatureSetStorage(cid, 10002,1)
else
npcHandler:say('You do not have needed items!', cid)
end
but when i put that storage on the door it simply doesnt work, can anyone help me? and one more thing, this is for
the summoner addon, i wanted to set it where when you get the cape addon you get the right to enter a room
to get a reward but i just simply cant get it to function, besides that every damn time i give items with a female
character i get summoner addon (ferumbras hat) instead of mage and i already changed the outfit id on the script
outfit_female = 138, outfit_male = 133, addon = 2, storageID = 10002
and it just simply doesnt work, anyone please help?
PS: sorry for bad english I'm frustrated
What I wanted to do is that an npc that gives an addon gives the right to enter the door after he collects the
items from the player, this is where i located the add creature event
doPlayerAddOutfit(cid, addoninfo.outfit_male, addoninfo.addon)
setPlayerStorageValue(cid,addoninfo.storageID,1)
npcHandler:say('Here you are.', cid)
doCreatureSetStorage(cid, 10002,1)
else
npcHandler:say('You do not have needed items!', cid)
end
but when i put that storage on the door it simply doesnt work, can anyone help me? and one more thing, this is for
the summoner addon, i wanted to set it where when you get the cape addon you get the right to enter a room
to get a reward but i just simply cant get it to function, besides that every damn time i give items with a female
character i get summoner addon (ferumbras hat) instead of mage and i already changed the outfit id on the script
outfit_female = 138, outfit_male = 133, addon = 2, storageID = 10002
and it just simply doesnt work, anyone please help?
PS: sorry for bad english I'm frustrated