Postado Janeiro 22, 2018 7 anos Bom eu quero por o determinado item (ID:22085) para se tornar um slot(Que ficará nos firstitems) onde só se pode colocar os items (22080, 22081, 22082 e 22083.) Só que ao tentar por item ou clicar no slot(ID:22085) não da certo. Firstitems.xml Citar <?xml version="1.0" encoding="UTF-8"?> <mod name="First Items" version="1.0" author="The Forgotten Server" contact="otland.net" enabled="yes"> <config name="firstitems_config"> <![CDATA[ config = { storage = 30001, items = {1988, 1987, 2382, 2120, 2550, 2580, 7385, 2395, 2547} -- 7385 (pokeinfo) -- 2395 (portfoil) ok -- 2382 (pokedex) ok -- 2547 (coin case) ok -- 2550 (order) ok -- 1987 (bag) ok -- 1988 (badge case) ok -- 2120 (rope) ok -- 2580 (fishing rod) ok } ]]> </config> <event type="login" name="FirstItems" event="script"> <![CDATA[ domodlib('firstitems_config') function onLogin(cid) if getCreatureName(cid) == "Account Manager" then doSetCreatureOutfit(cid, {lookType = 655}, -1) return true end if getPlayerSlotItem(cid, CONST_SLOT_ARMOR).itemid > 0 then return true end for _, id in ipairs(config.items) do doPlayerAddItem(cid, id, 1) end local bag = getPlayerItemById(cid, false, 1988).uid doAddContainerItem(bag, 12267, 1) doAddContainerItem(bag, 12266, 1) doAddContainerItem(bag, 12264, 1) doAddContainerItem(bag, 12265, 1) doAddContainerItem(bag, 12263, 1) doAddContainerItem(bag, 12262, 1) doAddContainerItem(bag, 12261, 1) doAddContainerItem(bag, 12260, 1) return true end ]]></event> </mod> OBS: O item (ID:22085) quero trocar pelo o coin case (ID:2547) (AMMO) Item Coin case encontrado no Item.xml Citar <item id="2547" article="your" name="coin case"> <attribute key="weight" value="0" /> <attribute key="slotType" value="ammo" /> <attribute key="description" value="This is the case to keep your casino coins. You can use those coins to play at the casino and some other places!" /> </item> Editado Janeiro 22, 2018 7 anos por Keiichi Okumura (veja o histórico de edições)
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.