Tudo que Gustavo BRX postou
-
Look no player diferente.
Uma script simples pra quem entende de lua
-
[PEDIDO]Npç Ajudante
Ajuda o caralho não ajudo mais ninguem desse forum agora ,boa sorte ai copiando codigos
-
[PEDIDO]Npç Ajudante
Eu editei o codigo que estava errado e o cara não teve inteligencia suficiente para olhar e manda um ?
-
Hospital Vip (Free)
Cada no login.lua tu poem isso if getPlayerStorageValue(cid, 122000) == 1 then location = { --Posição do hospital vip {x=2583, y=2517, z=15}, {x=2582, y=2517, z=15}, } setPlayerStorageValue(cid, 122000, 0) doTeleportThing(cid, location[math.random(#location)]) end Cria uma arquivo chamado deathh.lua function onPrepareDeath(cid, lastHitKiller, mostDamageKiller) if isPlayer(cid) == true then setPlayerStorageValue(cid, 122000, 1) return true end return true end creaturescripts.xml <event type="preparedeath" name="Hospitalsto" event="script" value="deathh.lua"/>
-
[PEDIDO]Npç Ajudante
voce é muito burro fica sem ajuda ai
-
Hospital Vip (Free)
Antes do ultimo return true coloque isso
-
Hospital Vip (Free)
if getPlayerStorageValue(cid, 122000) == 1 then location = { --Posição do hospital vip {x=2583, y=2517, z=15}, {x=2582, y=2517, z=15}, } setPlayerStorageValue(cid, 122000, 0) doTeleportThing(cid, location[math.random(#location)]) end poem isso no login lua e testa com o hospitaldeath
-
Hospital Vip (Free)
Arrumei o script irei testar e ja posto
-
Hospital Vip (Free)
Qual erro? irei testar e corrigir agora.
-
[PEDIDO]Npç Ajudante
Alterei e esqueci de salvar, teste-o novamente arrumei o codigo acima
-
SIMPLES AUMENTAR STORAGE?
setPlayerStorageValue(cid, 1, getPlayerStorageValue(cid, 1)+1)
-
Hospital Vip (Free)
Data/creaturescripts/ Hospital.lua function onLogin(cid) if getPlayerStorageValue(cid, 122000) == 1 and getPlayerPremiumDays(cid) >= 1 then location = { --Posição do hospital vip {x=2580, y=1815, z=7}, {x=2580, y=1811, z=7}, {x=2570, y=1818, z=7}, {x=2580, y=1807, z=7}, {x=2571, y=1821, z=7}, {x=2571, y=1825, z=7}, {x=2571, y=1829, z=7}, {x=2571, y=1833, z=7}, {x=2579, y=1830, z=7}, {x=2580, y=1833, z=7}, {x=2567, y=1818, z=7}, {x=2564, y=1818, z=7}, {x=2564, y=1807, z=7}, } setPlayerStorageValue(cid, 122000, 0) doTeleportThing(cid, location[math.random(#location)]) else location = { --Posição do hospital free {x=2580, y=1815, z=7}, {x=2580, y=1811, z=7}, {x=2570, y=1818, z=7}, } setPlayerStorageValue(cid, 122000, 0) doTeleportThing(cid, location[math.random(#location)]) end end hospitaldeath.lua function onPrepareDeath(cid, lastHitKiller, mostDamageKiller) if isPlayer(cid) == true then setPlayerStorageValue(cid, 122000, 1) return true end return true end creaturescripts.xml <event type="preparedeath" name="hospitaldeath" event="script" value="hospitaldeath.lua"/> <event type="login" name="Hospital" event="script" value="hospital.lua"/> @ZikaLord testa!
-
(Resolvido)Colocar posiçao no script
local combat = createCombatObject() setCombatParam(combat, COMBAT_PARAM_TYPE, COMBAT_PHYSICALDAMAGE) setCombatFormula(combat, COMBAT_FORMULA_LEVELMAGIC, -200.2, 1, -250.2, 1) function onCastSpell(cid, var) local pos1 = {x=getThingPosition(getCreatureTarget(cid)).x+2, y=getThingPosition(getCreatureTarget(cid)).y+3, z=getThingPosition(getCreatureTarget(cid)).z} local pos2 = {x=getThingPosition(getCreatureTarget(cid)).x+1, y=getThingPosition(getCreatureTarget(cid)).y+1, z=getThingPosition(getCreatureTarget(cid)).z} local t1 = 1 local t2 = 50 addEvent(doSendMagicEffect,t1,pos1,363) addEvent(doSendMagicEffect,t2,pos2,303) return doCombat(cid, combat, var) end
-
[PEDIDO]Npç Ajudante
<?xml version="1.0" encoding="UTF-8"?> <npc name="Informante" script="default.lua" walkinterval="2000" floorchange="0"> <health now="100" max="100"/> <look type="615" head="38" body="8" legs="13" feet="58" addons="0"/> <voices> <voice text=" Vamos.. digame oque quer" interval2="200" margin="1" yell="no"/> <voice text=" Fale comigo te mostrarei o caminho." interval2="320" margin="1" yell="no"/> </voices> <parameters> <parameter key="message_greet" value="Ola |PLAYERNAME|! voce esta prescisando de {informacao} ou quer saber {como} chegar ao depot de konoha?"/> <parameter key="message_farewell" value="Tudo bem, vejo voce em breve |PLAYERNAME|."/> <parameter key="message_walkaway" value="Flws." /> <parameter key="module_keywords" value="1" /> <parameter key="keywords" value="informacao;como;" /> <parameter key="keyword_reply1" value="este local é o centro de konoha, fale com o Hokage para receber missoes!." /> <parameter key="keyword_reply2" value="va para baixo, e vire a esquerda e voce ira achar o local." /> </parameters> </npc>
-
(Resolvido)Colocar posiçao no script
Codigo arrumado, desculpe mudei nome da variavel e nao troquei a de baixo codigo arrumado teste-o.
-
(Resolvido)Colocar posiçao no script
local combat = createCombatObject() setCombatParam(combat, COMBAT_PARAM_TYPE, COMBAT_PHYSICALDAMAGE) setCombatFormula(combat, COMBAT_FORMULA_LEVELMAGIC, -200.2, 1, -250.2, 1) function onCastSpell(cid, var) local pos1 = {x=getThingPosition(getCreatureTarget(cid)).x+2, y=getThingPosition(getCreatureTarget(cid)).y+3, z=getThingPosition(getCreatureTarget(cid)).z} local pos2 = {x=getThingPosition(getCreatureTarget(cid)).x+1, y=getThingPosition(getCreatureTarget(cid)).y+1, z=getThingPosition(getCreatureTarget(cid)).z} addEvent(function() doSendMagicEffect(pos1, 363) doSendMagicEffect(pos2, 303) end, 0) return doCombat(cid, combat, var) end o CombatParam COMBAT_PARAM_EFFECT envia o effect que voce colocou sem mecher na sua posição ...
-
Corrigir Script
È foda ninguem ajuda , fique 4hrs montando e corrigindo esse codigo e não consegui terminar e ninguem do tk ajuda
-
Corrigir Script
Estou tendo problemas para criar essa script, funciona da seguinte forma voce matara os monstros na ordem declara: Matei o raditz, agora so posso matar o vegeta, caso tente matar o raditz novamente da uma mensagem de erro , assim pra todas se eu tiver na 1 missao pra matar raditz e tenta matar vegeta da mensagem de erro. @xWhiteWolf , @Vodkart codigo que fiz, ta dando pra atacar os monstros anteriores