Solutions
-
Alencar123's post in (Resolvido)[Action] Criar item que teleporta pro corpo was marked as the answerCreaturescripts:
function onDeath(cid) local posx =getCreaturePosition(cid).x local posy =getCreaturePosition(cid).y local posz =getCreaturePosition(cid).z local storx = 98189 local story = 98190 local storz = 98191 if isPlayer(cid) then setPlayerStorageValue(cid, storx, posx) setPlayerStorageValue(cid, story, posy) setPlayerStorageValue(cid, storz, posz) return true end return true end Actions:
function onUse(cid, item) local pos = {x=getPlayerStorageValue(cid,98189),y=getPlayerStorageValue(cid, 98190),z=getPlayerStorageValue(cid, 98191)} doTeleportThing(cid, pos) return true end Caso queria que o item seja removido:
function onUse(cid, item) local pos = {x=getPlayerStorageValue(cid,98189),y=getPlayerStorageValue(cid, 98190),z=getPlayerStorageValue(cid, 98191)} doTeleportThing(cid, pos) doRemoveItem(item) return true end
-
Alencar123's post in (Resolvido)Script De Teleport (!bug) was marked as the answerfunction onSay(cid, words, param)pos = {x=1059, y=1051, z=7} if getCreatureCondition(cid, CONDITION_INFIGHT) then doPlayerSendCancel(cid, "Nao ira fugir quando estiver de battle!") else doSendMagicEffect(getPlayerPosition(cid),19) doPlayerSendCancel(cid,"Teleportado!") doTeleportThing(cid,pos) end return true end
-
Alencar123's post in (Resolvido)Falar nome + group ao logar was marked as the answerfunction onLogin(cid) if getPlayerGroupId(cid) >= 3 then doBroadcastMessage("STAFF [".. getCreatureName(cid).."] entrou.)) end return true end
-
Alencar123's post in (Resolvido)ajuda comandos was marked as the answerVai em data/xml
Abre o arquivo chamado groups.xml
Tira isso dos cargos que vc não quer que de ban:
violationReasons="10" nameViolationFlags="2" statementViolationFlags="63" Exemplo
Como está:
<group id="4" name="Gamemaster" flags="3808558964575" customFlags="257215" access="3" violationReasons="19" nameViolationFlags="10" statementViolationFlags="69" depotLimit="3000" maxVips="300" outfit="295"/> Como irá ficar:
<group id="4" name="Gamemaster" flags="3808558964575" customFlags="257215" access="3" depotLimit="3000" maxVips="300" outfit="295"/> -
Alencar123's post in (Resolvido)[Pedido] Monstro/Script was marked as the answerColoque-o em data/creaturescripts/scripts
-----------------------------------------------------------
Em data/creaturescripts
Em creaturescripts.xml:
<event type="death" name="Spread" event="script" value="nomedoarquivo.lua"/> data/creaturescripts/scripts
Em login.lua:
registerCreatureEvent(cid, "Spread") -
Alencar123's post in (Resolvido)exhaustion.check and exhaustion.set was marked as the answerPara adicionar cooldown primeiramente adicione estes locais no script:
local tempo = 900 -- Tempo para usar novamente (em segundos) local storage = 23585 -- storage pra verificar se o player já pode usar novamente Depois disso, adicione isso a seguir depois da linha function:
if exhaustion.check(cid, storage) then doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_RED, "Mensagem dizendo ao player que ele tem que esperar") return true end Agora você adiciona isso junto da função principal do script:
exhaustion.set(cid, storage, tempo) Exemplo:
function onSay(cid, words, param) local storage = 23585 local tempo = 3600 local cidade = getPlayerTown(cid) local pos = getTownTemplePosition(cidade) if exhaustion.check(cid, storage) then doPlayerSendTextMessage(cid, 22, "Você não tem dinheiro suficiente, espere passar o tempo de 1 hora depois da ultima vez que você usou para usar novamente!") return true end doTeleportThing(cid, pos) exhaustion.set(cid, storage, tempo) doSendAnimatedText(getThingPosWithDebug(cid), "Desbugado!", COLOR_BURN) doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_RED, "Voce sera kikado!") addEvent(doRemoveCreature, 2500, cid) end @Deu um erro aqui e publicou dois posts mals ai.
-
Alencar123's post in (Resolvido)Alguém ai coloca um limite para usar esse comando !desbug ? was marked as the answerTenta o meu:
function onSay(cid, words, param) --local pos = {x= 0, y= 0, z=0} local storage = 23564 local tempo = 30 local cidade = getPlayerTown(cid) local pos = getTownTemplePosition(cidade) if exhaustion.check(cid, storage) then doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_ORANGE, "Aguarde " .. exhaustion.get(cid, storage) .. " minutos para usar novamente.") return true end if getCreatureCondition(cid, CONDITION_INFIGHT) then doPlayerSendCancel(cid, 'Voce nao pode desbugar char se estiver em battle.') return true end --doRemoveCreature(cid) doSendMagicEffect(getPlayerPosition(cid),53) doPlayerSendCancel(cid,"Desbugado !") doTeleportThing(cid, pos) exhaustion.set(cid, storage, tempo*60) end -
Alencar123's post in (Resolvido)[Ajuda] Colocar pausa de tempo entre os laços do for was marked as the answer
-
Alencar123's post in (Resolvido)Como mudar oq esta escrito quando da look nos items ou bixo? was marked as the answerVai no arquivo .xml do monster e muda o q ta de vermelho pra msg que tu quer que aparece:
Em data\items no arquivo .xml procure o item e mude. -
Alencar123's post in (Resolvido)Source para Narutibia (Nto Shinobi) was marked as the answerhttp://www.4shared.com/rar/ASlDaC9m/stigal_e_beeki_-_source_nto_sh.html?locale=pt-BR
-
Alencar123's post in (Resolvido)[Help] Como Adiciono Ataques Em Um Pokemon? was marked as the answerSer for m1...
e em data/lib no arquivo configuration.lua
Vai estar + ou - assim:
Citar
-
Alencar123's post in (Resolvido)[PEDIDO] 2 Scripts was marked as the answer1 script:
tag.xml:
No login.lua:
-
Alencar123's post in (Resolvido)[~Duvida~] Como eu faço um combo? was marked as the answerDe laranja os segundos pra soltar a spell de vermelho so altere se souber o que faz de azul você põe antes da função de executar a spell de verde a mensagem de preto você põe junto com as funções que vão executar a spell
-
Alencar123's post in (Resolvido)Muda Storage para VIP was marked as the answerTenta assim:
-
Alencar123's post in (Resolvido)Script para Teleportar para Templo ! was marked as the answerTenta esse:
-
Alencar123's post in (Resolvido)[Quest] Pegar prêmio 30 em 30 minutos. was marked as the answerPeguei o dele e dei uma editada.
-
Alencar123's post in (Resolvido)[ Pedido ] !changesex was marked as the answerTenta esse:
function onSay(cid) local xxxxx = ID DO ITEM AQUI if( getPlayerSex(cid) == 0 )then doPlayerSetSex(cid, 1) doPlayerSendTextMessage(cid,22, "You have changed your Gender") doSendMagicEffect(getPlayerPosition(cid), 5) doRemoveItem(cid, xxxxx) else if( getPlayerSex(cid) == 1 ) then doPlayerSetSex(cid, 0) doPlayerSendTextMessage(cid,22, "You have changed your Gender") doSendMagicEffect(getPlayerPosition(cid), 5) doRemoveItem(cid, xxxxx) end return true end end OBS: não testei