Tudo que Cat postou
-
Erro sql
cara, tenta trocar sua database, provavelmente há algum erro lá.
-
Boletim
entrei na federal, mas ta em greve adeus escola publica
- Voltei dos Mortos!
-
Voltei dos Mortos!
:wallbash: :wallbash: :wallbash: :wallbash: nao fode brow..
- Voltei dos Mortos!
- alfbru
-
Boletim
a minha mais baixa foi 8 mas a culpa é da escola, os prof dao nota de graça
-
Completando 18 Anos Hoje *.*
te dei rep pq vc é legal, quanto aos 18, espero nao chegar... vou querer um rep 6 de janeiro ok?
-
Voltei dos Mortos!
tu tava fora? nem percebi manolo hsauhsuha bem vindo devolta
-
estou saindo também
pensei que era verdade zuando fica ai bro
-
Sorteio Placa de Vídeo!
precisa ver o video pra concorrer?
- alfbru
-
Servidor caindo
mesma coisa acontecendo comigo.. realmente não sei o que é.
-
[NPC] Que troca item
créditos: notle2012 <npc name="NOMEDONPC" script="data/npc/scripts/nomedoarquivo.lua" walkinterval="2000" floorchange="0"> <health now="100" max="100"/> <look type="134" head="78" body="88" legs="0" feet="88" addons="3"/> <parameters> <parameter key="message_greet" value="Ola. Para mais informacoes de meus servicos diga {trocaitem}." /> <parameter key="message_farewell" value="Tchau." /> <parameter key="message_walkaway" value="Tchau." /> </parameters> </npc> local keywordHandler = KeywordHandler:new() local npcHandler = NpcHandler:new(keywordHandler) NpcSystem.parseParameters(npcHandler) local troca = 2000 -------------- id do item que vai ser trocado local id = 2160 --- id do item que vai ganhar dps da troca 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 function creatureSayCallback(cid, type, msg) if msgcontains(msg, 'trocaitem') then if doPlayerRemoveItem(cid,troca,1) then doPlayerAddItem(cid,id,1) doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "coloca um texto aqui") -- edita aqui else doPlayerSendCancel(cid,"Você Não Tem Grana Só Lamento.") -- edita aqui end end return TRUE end npcHandler:setCallback(CALLBACK_MESSAGE_DEFAULT, creatureSayCallback) npcHandler:addModule(FocusModule:new()) espero ter ajudado.
- [DUVIDA]Como colocar os NPC's de addon igual do Global?
-
Rank Rookgaard
cara, que eu saiba não.. daria pra faze rum ranking de players sem vocação creio eu.. mas infelismente eu nao sei huehe vou esperar esse script também, quero usar =D
-
[AJUDA] como resolver esse erro?
qual foi sua ultima modificação nesse config?
-
(resolvido) Pedido NPCS
nada man, se tever alguma duvida só falar. Tópico resolvido.
-
(resolvido) Pedido NPCS
comerciante de ferramentas data/npc/scripts/Ahmet.lua -------------------------------------------------------------------------------------------------------------------------------------------- Comerciante de alimentos data/npc/scripts/Anerui.lua -------------------------------------------------------------------------------------------------------------------------------------------- Arqueiro data/npc/scripts/Cedrik.lua -------------------------------------------------------------------------------------------------------------------------------------------- Comerciante de Armaduras data/npc/scripts/default.lua -------------------------------------------------------------------------------------------------------------------------------------------- Comerciante de Itens mágicos data/npc/scripts/Alexander.lua default.lua -------------------------------------------------------------------------------------------------------------------------------------------- Carteiro data/npc/scripts/Benjamin.lua -------------------------------------------------------------------------------------------------------------------------------------------- Quando tem: data/npc/scripts/default.lua ou só defaut.lua é por que não precisa criar nada em data/npcs/scripts, só em data/npcs -------------------------------------------------------------------------------------------------------------------------------------------- Cara é isso, se precisar de mais fala ae... sugiro usar estes como base e ir aprendendo a fazer novos, qualquer duvida so falar.
-
(resolvido) Pedido NPCS
cara quais npcs você quer exatamente? se baixar qualquer server você os encontra eu te mando os que eu tenho só fala a lista do que quer.
-
VIP System
passa o script, é só modificar, possivelmente há algum erro.
-
erro ao fazer quest
nao tinha entendido direito a duvida, mesmo assim o script postado pode ajudar desculpe a confusão.
-
erro ao fazer quest
vá em data/actions/scripts renomeie um arquivo para System.lua e dentro coloque isto: local specialQuests = { [2001] = 30015 --Annihilator } local questsExperience = { [30015] = 10000 } function onUse(cid, item, fromPosition, itemEx, toPosition) if(getBooleanFromString(getConfigValue('enableProtectionQuestForGM'))) then if(getPlayerCustomFlagValue(cid, PLAYERCUSTOMFLAG_GAMEMASTERPRIVILEGES)) then doSendMagicEffect(getCreaturePosition(cid), CONST_ME_POFF, cid) return true end end local storage = specialQuests[item.actionid] if(not storage) then storage = item.uid if(storage > 65535) then return false end end if(getCreatureStorage(cid, storage) > 0) then doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, "It is empty.") return true end local items = {} local reward = 0 local size = isContainer(item.uid) and getContainerSize(item.uid) or 0 if(size == 0) then reward = doCopyItem(item, false) else for i = 0, size do local tmp = getContainerItem(item.uid, i) if(tmp.itemid > 0) then table.insert(items, tmp) end end end size = table.maxn(items) if(size == 1) then reward = doCopyItem(items[1], true) end local result = "" if(reward ~= 0) then local ret = getItemDescriptions(reward.uid) if(reward.type > 0 and isItemRune(reward.itemid)) then result = reward.type .. " charges " .. ret.name elseif(reward.type > 0 and isItemStackable(reward.itemid)) then result = reward.type .. " " .. ret.plural else result = ret.article .. " " .. ret.name end else if(size > 20) then reward = doCopyItem(item, false) elseif(size > 8) then reward = getThing(doCreateItemEx(1988, 1)) else reward = getThing(doCreateItemEx(1987, 1)) end for i = 1, size do local tmp = doCopyItem(items[i], true) if(doAddContainerItemEx(reward.uid, tmp.uid) ~= RETURNVALUE_NOERROR) then print("[Warning] QuestSystem:", "Could not add quest reward") else local ret = ", " if(i == 2) then ret = " and " elseif(i == 1) then ret = "" end result = result .. ret ret = getItemDescriptions(tmp.uid) if(tmp.type > 0 and isItemRune(tmp.itemid)) then result = result .. tmp.type .. " charges " .. ret.name elseif(tmp.type > 0 and isItemStackable(tmp.itemid)) then result = result .. tmp.type .. " " .. ret.plural else result = result .. ret.article .. " " .. ret.name end end end end if(doPlayerAddItemEx(cid, reward.uid, false) ~= RETURNVALUE_NOERROR) then result = "You have found a reward weighing " .. getItemWeight(reward.uid) .. " oz. It is too heavy or you have not enough space." else result = "You have found " .. result .. "." doCreatureSetStorage(cid, storage, 1) if(questsExperience[storage] ~= nil) then doPlayerAddExpEx(cid, questsExperience[storage]) end end doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, result) return true end agora em data/actions/actions.xml adicione esta tag: <action actionid="2000-2001" event="script" value="system.lua"/> Abra o rme. nas propriedades do bau coloque o action 2000 e o uniqueid que você quiser, escolha o iten e salve. Prontinho, caso quiser outros tipos de quests voce deve pesquisar os scripts.
-
Esconder Skulls por amuleto
você quer que o amuleto remova a skull quando usar, mas quando retirar o amuleto a skull volte? se nao for tenta usar este postado pelo vodkart em outro forum. Creditos: Sebasbe and Nicekid 1° passo vá até data\creaturescripts\scripts e crie um arquivo.lua e renomeie para preparedeath.lua dentro coloque: function onDeath(cid, corpse, deathList) if (getPlayerSlotItem(cid, 2).itemid == 2196) and getPlayerSkullType(cid) >= 4 then doPlayerRemoveItem(cid, 2196, 1) doCreatureSetDropLoot(cid, false) end return true end em data\creaturescripts\scripts\login.lua adiciona a linha: registerCreatureEvent(cid, "SkullAmulet") creaturescripts.xml adicione: <event type="death" name="SkullAmulet" event="script" value="preparedeath.lua"/> 2° - passo em items.xml substitua <item id="2196" article="a" name="broken amulet"> <attribute key="weight" value="420" /> <attribute key="slotType" value="necklace" /> </item> Por: <item id="2196" article="a" name="Red Skull Amulet"> <attribute key="weight" value="420" /> <attribute key="slotType" value="necklace" /> </item> Pronto.
- (resolvido) LookType do monstros!