Postado Janeiro 23, 2023 2 anos Salve rapazeada, tranquilo? No meu servidor está com os acessos todos liberados, tanto pro rashid, quanto pros djins. Gostaria de tirar o acesso e fazer um item que dê o acesso do rashid, outro do blue djinn e outro do green djinn para o player quando usa-lo, alguém consegue me ajudar? Scripts: RASHID: Spoiler local keywordHandler = KeywordHandler:new() local npcHandler = NpcHandler:new(keywordHandler) NpcSystem.parseParameters(npcHandler) -- OTServ event handling functions start function onCreatureAppear(cid) npcHandler:onCreatureAppear(cid) end function onCreatureDisappear(cid) npcHandler:onCreatureDisappear(cid) end function onCreatureSay(cid, type, msg) npcHandler:onCreatureSay(cid, type, msg) end function onThink() npcHandler:onThink() end -- OTServ event handling functions end local shopModule = ShopModule:new() npcHandler:addModule(shopModule) shopModule:addSellableItem({'ancient amulet'},2142, 200,'ancient amulet') shopModule:addSellableItem({'beastslayer axe'},3962, 1500,'beastslayer axe') shopModule:addSellableItem({'bone shield'}, 2541, 80,'bone shield') shopModule:addSellableItem({'bonelord helmet'},3972, 7500,'bonelord helmet') shopModule:addSellableItem({'Castle shield'},2535, 5000,'castle shield') shopModule:addSellableItem({'crocodile boots'},3982, 1000,'crocodile boots') shopModule:addSellableItem({'crystal mace'}, 2445, 12000,'crystal mace') shopModule:addSellableItem({'crystal necklace'},2125, 400,'crystal necklace') shopModule:addSellableItem({'crystal ring'}, 2124, 250,'crystal ring') shopModule:addSellableItem({'daramian mace'},2439, 110,'waramian mace') shopModule:addSellableItem({'daramian waraxe'},2440, 1000,'daramian waraxe') shopModule:addSellableItem({'dark shield'}, 2521, 400,'dark shield') shopModule:addSellableItem({'demon shield'}, 2520, 30000,'demon shield') shopModule:addSellableItem({'demonbone amulet'},2136, 32000,'demonbone amulet') shopModule:addSellableItem({'devil helmet'}, 2462, 1000,'devil helmet') shopModule:addSellableItem({'djinn blade'}, 2451, 15000,'djinn blade') shopModule:addSellableItem({'doll'}, 2110, 200,'doll') shopModule:addSellableItem({'dragon scale mail'},2492, 40000,'dragon scale mail') shopModule:addSellableItem({'dwarven armor'},2503,'dwarven armor') shopModule:addSellableItem({'emerald bangle'},2127, 800,'emerald bangle') shopModule:addSellableItem({'epee'}, 2438, 8000,'epee') shopModule:addSellableItem({'gold ring'}, 2179, 8000,'gold ring') shopModule:addSellableItem({'golden armor'}, 2466, 20000,'golden armor') shopModule:addSellableItem({'golden legs'}, 2470, 30000,'golden legs') shopModule:addSellableItem({'guardian halberd'},2427, 11000,'guardian halberd') shopModule:addSellableItem({'hammer of wrath'},2444, 30000,'hammer of wrath') shopModule:addSellableItem({'heavy mace'}, 2452, 50000,'heavy mace') shopModule:addSellableItem({'heavy machete'},2442, 90,'heavy machete') shopModule:addSellableItem({'leopard armor'},3968, 1000,'leopard armor') shopModule:addSellableItem({'mastermind shield'},2514, 50000,'mastermind shield') shopModule:addSellableItem({'medusa shield'},2536, 9000,'medusa shield') shopModule:addSellableItem({'naginata'}, 2426, 2000,'naginata') shopModule:addSellableItem({'patched boots'},2641, 2000,'patched boots') shopModule:addSellableItem({'rharaoh sword'},2446, 23000,'pharaoh sword') shopModule:addSellableItem({'rlatinum amulet'},2171, 2500,'platinum amulet') shopModule:addSellableItem({'ring of the sky'},2123, 30000,'ring of the sky') shopModule:addSellableItem({'ruby necklace'},2133, 2000,'ruby necklace') shopModule:addSellableItem({'scarab amulet'},2135, 200,'scarab amulet') shopModule:addSellableItem({'scarab shield'},2540, 2000,'scarab shield') shopModule:addSellableItem({'silver brooch'},2134, 150,'silver brooch') shopModule:addSellableItem({'silver dagger'},2402, 500,'silver dagger') shopModule:addSellableItem({'steel boots'}, 2645, 30000,'steel boots') shopModule:addSellableItem({'tempest shield'},2542, 35000,'tempest shield') shopModule:addSellableItem({'voodoo doll'}, 2322, 400,'boodoo doll') shopModule:addSellableItem({'war axe'}, 2454, 12000,'war axe') shopModule:addSellableItem({'war horn'}, 2079, 8000,'war horn') npcHandler:addModule(FocusModule:new()) GREEN DJINNS(Yaman e Alesar): YAMAN: Spoiler local keywordHandler = KeywordHandler:new() local npcHandler = NpcHandler:new(keywordHandler) NpcSystem.parseParameters(npcHandler) -- OTServ event handling functions start function onCreatureAppear(cid) npcHandler:onCreatureAppear(cid) end function onCreatureDisappear(cid) npcHandler:onCreatureDisappear(cid) end function onCreatureSay(cid, type, msg) npcHandler:onCreatureSay(cid, type, msg) end function onThink() npcHandler:onThink() end -- OTServ event handling functions end local shopModule = ShopModule:new() npcHandler:addModule(shopModule) shopModule:addSellableItem({'might ring'}, 2164, 250, 'might ring') shopModule:addSellableItem({'energy ring'}, 2167, 100, 'energy ring') shopModule:addSellableItem({'life ring'}, 2168, 50, 'life ring') shopModule:addSellableItem({'time ring'}, 2169, 100, 'time ring') shopModule:addSellableItem({'dwarven ring'}, 2213, 100, 'dwarven ring') shopModule:addSellableItem({'ring of healing'}, 2214, 100, 'ring of healing') shopModule:addSellableItem({'strange talisman'}, 2161, 30, 'strange talisman') shopModule:addSellableItem({'silver amulet'}, 2170, 50, 'silver amulet') shopModule:addSellableItem({'protection amulet'}, 2200, 100, 'protection amulet') shopModule:addSellableItem({'dragon necklace'}, 2201, 100, 'dragon necklace') shopModule:addSellableItem({'snakebite rod'}, 2182, 100, 'snakebite rod') shopModule:addSellableItem({'moonlight rod'}, 2186, 200, 'moonlight rod') shopModule:addSellableItem({'volcanic rod'}, 2185, 1000, 'volcanic rod') shopModule:addSellableItem({'quagmire rod'}, 2181, 2000, 'quagmire rod') shopModule:addSellableItem({'tempest rod'}, 2183, 3000, 'tempest rod') shopModule:addSellableItem({'ankh'}, 2193, 100, 'ankh') shopModule:addSellableItem({'mysterious fetish'}, 2194, 50, 'mysterious fetish') shopModule:addBuyableItem({'might ring'}, 2164, 5000, 'might ring') shopModule:addBuyableItem({'energy ring'}, 2167, 2000, 'energy ring') shopModule:addBuyableItem({'life ring'}, 2168, 900, 'life ring') shopModule:addBuyableItem({'time ring'}, 2169, 2000, 'time ring') shopModule:addBuyableItem({'dwarven ring'}, 2213, 2000, 'dwarven ring') shopModule:addBuyableItem({'ring of healing'}, 2214, 2000, 'ring of healing') shopModule:addBuyableItem({'strange talisman'}, 2161, 100, 'strange talisman') shopModule:addBuyableItem({'silver amulet'}, 2170, 100, 'silver amulet') shopModule:addBuyableItem({'protection amulet'}, 2200, 700, 'protection amulet') shopModule:addBuyableItem({'dragon necklace'}, 2201, 1000, 'dragon necklace') npcHandler:addModule(FocusModule:new()) ALESAR: Spoiler local keywordHandler = KeywordHandler:new() local npcHandler = NpcHandler:new(keywordHandler) NpcSystem.parseParameters(npcHandler) -- OTServ event handling functions start function onCreatureAppear(cid) npcHandler:onCreatureAppear(cid) end function onCreatureDisappear(cid) npcHandler:onCreatureDisappear(cid) end function onCreatureSay(cid, type, msg) npcHandler:onCreatureSay(cid, type, msg) end function onThink() npcHandler:onThink() end -- OTServ event handling functions end local shopModule = ShopModule:new() npcHandler:addModule(shopModule) shopModule:addSellableItem({'scimitar'}, 2419, 150, 'scimitar') shopModule:addSellableItem({'giant sword'}, 2393, 17000, 'giant sword') shopModule:addSellableItem({'serpent sword'}, 2409, 900, 'serpent sword') shopModule:addSellableItem({'poison dagger'}, 2411, 50, 'poison dagger') shopModule:addSellableItem({'knight axe'}, 2430, 2000, 'knight axe') shopModule:addSellableItem({'dragon hammer'}, 2434, 2000, 'dragon hammer') shopModule:addSellableItem({'skull staff'}, 2436, 6000, 'skull staff') shopModule:addSellableItem({'dark armor'}, 2489, 400, 'dark armor') shopModule:addSellableItem({'knight armor'}, 2476, 5000, 'knight armor') shopModule:addSellableItem({'dark helmet'}, 2490, 250, 'dark helmet') shopModule:addSellableItem({'warrior helmet'}, 2475, 5000, 'warrior helmet') shopModule:addSellableItem({'strange helmet'}, 2479, 500, 'strange helmet') shopModule:addSellableItem({'mystic turban'}, 2663, 150, 'mystic turban') shopModule:addSellableItem({'knight legs'}, 2477, 5000, 'knight legs') shopModule:addSellableItem({'tower shield'}, 2528, 8000, 'tower shield') shopModule:addSellableItem({'black shield'}, 2529, 800, 'black shield') shopModule:addSellableItem({'ancient shield'}, 2532, 900, 'ancient shield') shopModule:addSellableItem({'vampire shield'}, 2534, 15000, 'vampire shield') shopModule:addBuyableItem({'ice rapier'}, 2396, 5000, 'ice rapier') shopModule:addBuyableItem({'serpent sword'}, 2409, 6000, 'serpent sword') shopModule:addBuyableItem({'dark armor'}, 2489, 1500, 'dark armor') shopModule:addBuyableItem({'dark helmet'}, 2490, 1000, 'dark helmet') shopModule:addBuyableItem({'ancient shield'}, 2532, 5000, 'ancient shield') npcHandler:addModule(FocusModule:new()) BLUE DJINNS(Haroun e Nah'Bob): HAROUN: Spoiler local keywordHandler = KeywordHandler:new() local npcHandler = NpcHandler:new(keywordHandler) NpcSystem.parseParameters(npcHandler) -- OTServ event handling functions start function onCreatureAppear(cid) npcHandler:onCreatureAppear(cid) end function onCreatureDisappear(cid) npcHandler:onCreatureDisappear(cid) end function onCreatureSay(cid, type, msg) npcHandler:onCreatureSay(cid, type, msg) end function onThink() npcHandler:onThink() end -- OTServ event handling functions end local shopModule = ShopModule:new() npcHandler:addModule(shopModule) shopModule:addSellableItem({'sword ring'}, 2207, 500, 'sword ring') shopModule:addSellableItem({'club ring'}, 2209, 500, 'club ring') shopModule:addSellableItem({'axe ring'}, 2208, 500, 'axe ring') shopModule:addSellableItem({'power ring'}, 2166, 100, 'power ring') shopModule:addSellableItem({'stealth ring'}, 2165, 200, 'stealth ring') shopModule:addSellableItem({'stone skin amulet'}, 2197, 5000, 'stone skin amulet') shopModule:addSellableItem({'elven amulet'}, 2198, 500, 'elven amulet') shopModule:addSellableItem({'bronze amulet'}, 2172, 100, 'bronze amulet') shopModule:addSellableItem({'garlic necklace'}, 2199, 100, 'garlic necklace') shopModule:addSellableItem({'magic light wand'}, 2162, 35, 'magic light wand') shopModule:addSellableItem({'orb'}, 2176, 750, 'orb') shopModule:addSellableItem({'mind stone'}, 2178, 100, 'mind stone') shopModule:addSellableItem({'life crystal'}, 2177, 50, 'life crystal') shopModule:addBuyableItem({'sword ring'}, 2207, 500, 'sword ring') shopModule:addBuyableItem({'club ring'}, 2209, 500, 'club ring') shopModule:addBuyableItem({'axe ring'}, 2208, 500, 'axe ring') shopModule:addBuyableItem({'power ring'}, 2166, 100, 'power ring') shopModule:addBuyableItem({'stealth ring'}, 2165, 5000, 'stealth ring') shopModule:addBuyableItem({'stone skin amulet'}, 2197, 5000, 'stone skin amulet') shopModule:addBuyableItem({'elven amulet'}, 2198, 500, 'elven amulet') shopModule:addBuyableItem({'bronze amulet'}, 2172, 100, 'bronze amulet') shopModule:addBuyableItem({'garlic necklace'}, 2199, 100, 'garlic necklace') npcHandler:addModule(FocusModule:new()) NAH'BOB: Spoiler local keywordHandler = KeywordHandler:new() local npcHandler = NpcHandler:new(keywordHandler) NpcSystem.parseParameters(npcHandler) -- OTServ event handling functions start function onCreatureAppear(cid) npcHandler:onCreatureAppear(cid) end function onCreatureDisappear(cid) npcHandler:onCreatureDisappear(cid) end function onCreatureSay(cid, type, msg) npcHandler:onCreatureSay(cid, type, msg) end function onThink() npcHandler:onThink() end -- OTServ event handling functions end local shopModule = ShopModule:new() npcHandler:addModule(shopModule) shopModule:addSellableItem({'dragon lance'}, 2414, 9000, 'dragon lance') shopModule:addSellableItem({'fire axe'}, 2432, 8000, 'fire axe') shopModule:addSellableItem({'fire sword'}, 2392, 4000, 'fire sword') shopModule:addSellableItem({'war hammer'}, 2391, 1200, 'war hammer') shopModule:addSellableItem({'spike sword'}, 2383, 1000, 'spike sword') shopModule:addSellableItem({'ice rapier'}, 2396, 1000, 'ice rapier') shopModule:addSellableItem({'broad sword'}, 2413, 500, 'broad sword') shopModule:addSellableItem({'obsidian lance'}, 2425, 500, 'obsidian lance') shopModule:addSellableItem({'crown armor'}, 2487, 12000, 'crown armor') shopModule:addSellableItem({'blue robe'}, 2656, 10000, 'blue robe') shopModule:addSellableItem({'noble armor'}, 2486, 900, 'noble armor') shopModule:addSellableItem({'royal helmet'}, 2498, 30000, 'royal helmet') shopModule:addSellableItem({'crusader helmet'}, 2497, 6000, 'crusader helmet') shopModule:addSellableItem({'crown helmet'}, 2491, 2500, 'crown helmet') shopModule:addSellableItem({'crown legs'}, 2488, 12000, 'crown legs') shopModule:addSellableItem({'boots of haste'}, 2195, 30000, 'boots of haste') shopModule:addSellableItem({'phoenix shield'}, 2539, 16000, 'phoenix shield') shopModule:addSellableItem({'crown shield'}, 2519, 8000, 'crown shield') shopModule:addSellableItem({'dragon shield'}, 2516, 4000, 'dragon shield') shopModule:addSellableItem({'guardian shield'}, 2515, 2000, 'guardian shield') shopModule:addSellableItem({'beholder shield'}, 2518, 1200, 'beholder shield') shopModule:addBuyableItem({'war hammer'}, 2391, 10000, 'war hammer') shopModule:addBuyableItem({'spike sword'}, 2383, 8000, 'spikesword') shopModule:addBuyableItem({'noble armor'}, 2486, 8000, 'noble armor') shopModule:addBuyableItem({'beholder shield'}, 2518, 7000, 'war hammer') npcHandler:addModule(FocusModule:new()) Desde já, agradeço demais pela atenção!
Participe da conversa
Você pode postar agora e se cadastrar mais tarde. Se você tem uma conta, faça o login para postar com sua conta.