Solutions
-
L3K0T's post in (Resolvido)Zombie event error monster was marked as the answer<?xml version="1.0" encoding="UTF-8"?>
<monster name="Event zombie" nameDescription="an event zombie" race="undead" experience="280" speed="100" manacost="0">
<health now="500" max="500"/>
<look type="311" head="0" body="0" legs="0" feet="0" corpse="9875"/>
<targetchange interval="5000" chance="50"/>
<strategy attack="100" defense="0"/>
<flags>
<flag summonable="1"/>
<flag attackable="0"/>
<flag hostile="1"/>
<flag illusionable="0"/>
<flag convinceable="0"/>
<flag pushable="0"/>
<flag canpushitems="1"/>
<flag canpushcreatures="1"/>
<flag targetdistance="1"/>
<flag staticattack="90"/>
<flag runonhealth="0"/>
</flags>
<attacks>
<attack name="melee" interval="2000" min="-350" max="-350">
</attack>
</attacks>
<defenses armor="15" defense="10"/>
<immunities>
<immunity paralyze="1"/>
</immunities>
<voices interval="5000" chance="10">
<voice sentence="You wont last long!"/>
<voice sentence="Mmmmh.. braains!"/>
</voices>
<loot>
<item id="2148" countmax="1" chance="100000"/><!-- gold coin -->
</loot>
</monster>
*(Event zombie) tem que ser igualzinho maiuscula certinho
-
L3K0T's post in (Resolvido)Maximo de hp was marked as the answer99999999999
-
L3K0T's post in (Resolvido)Pedido script de quando pokemon morre abri um portal was marked as the answerVa na pasta data/creaturescripts de seu otserv abra o arquivo creaturescripts.xml e add a tag:
<event type="death" name="teleportmonster" script="tpmonster.lua"/>
Abra a pasta scripts crie um arquivo chamado tpmonster.lua e adicione:
local config = {
message = "Congrulations. Teleport close in 1 minute",
timeToRemove = 60, -- seconds
teleportId = 1387,
bosses = {
["Orchid Frog"] = { x = 459, y = 594, z = 7 },
}
}
local function removal(position)
doRemoveThing(getTileItemById(position, config.teleportId).uid, 1)
return TRUE
end
function onDeath(cid, corpse, killer)
registerCreatureEvent(cid, "teleportmonster")
local position = getCreaturePosition(cid)
for name, pos in pairs(config.bosses) do
if name == getCreatureName(cid) then
teleport = doCreateTeleport(config.teleportId, pos, position)
doCreatureSay(cid, config.message, TALKTYPE_ORANGE_1)
addEvent(removal, config.timeToRemove * 1000, position)
doSendMagicEffect(position,10)
end
end
return TRUE
end
OBS: aquela coordenada é para onde o teleport erá te levar.
agora vá até a pasta monster, abra o arquivo do seu monstro e add a tag:
<script>
<event name="teleportmonster"/>
</script>
Ficara assim o arquivo xml do seu monstro:
<?xml version="1.0" encoding="UTF-8"?>
<monster name="orchid frog" nameDescription="a orchid frog" race="blood" experience="20" speed="230" manacost="0">
<health now="60" max="60"/>
<look type="226" head="109" body="14" legs="109" feet="114" corpse="6079"/>
<targetchange interval="5000" chance="20"/>
<strategy attack="100" defense="0"/>
<flags>
<flag summonable="0"/>
<flag attackable="1"/>
<flag hostile="1"/>
<flag illusionable="0"/>
<flag convinceable="0"/>
<flag pushable="1"/>
<flag canpushitems="0"/>
<flag canpushcreatures="0"/>
<flag staticattack="90"/>
<flag targetdistance="1"/>
<flag runonhealth="0"/>
</flags>
<attacks>
<attack name="melee" interval="2000" skill="3" attack="9"/>
</attacks>
<defenses armor="2" defense="3"/>
<immunities>
<immunity physical="0"/>
<immunity energy="0"/>
<immunity fire="0"/>
<immunity poison="0"/>
<immunity lifedrain="0"/>
<immunity paralyze="0"/>
<immunity outfit="0"/>
<immunity drunk="0"/>
<immunity invisible="0"/>
</immunities>
<voices interval="5000" chance="10">
<voice sentence="Ribbit!Ribbit!"/>
</voices>
<loot>
<item id="2148" countmax="10" chance1="60000" chancemax="1321"/>
<item id="3976" countmax="7" chance1="53500" chancemax="2120"/>
</loot>
<script>
<event name="teleportmonster"/>
</script>
</monster>
Créditos: mariatti
-
L3K0T's post in (Resolvido)Duplicad item id 0 was marked as the answerfaz assim apaga tudo dentro da weapons liga o server e veja se o erro continua se n aparecer é em weapons.... deixa assim pra teste
<?xml version="1.0" encoding="UTF-8"?>
<weapons>
</weapons>
-
L3K0T's post in (Resolvido)Ajuda com erro na distro was marked as the answerremova
function isInRange(position, fromPosition, toPosition)
return (position.x >= fromPosition.x and position.y >= fromPosition.y and position.z >= fromPosition.z and position.x <= toPosition.x and position.y <= toPosition.y and position.z <= toPosition.z)
end
da sua lib pode ser que está ali mas n server pra nada e veja!
-
L3K0T's post in (Resolvido)[Ajuda] Exhausted was marked as the answerstairhopDelay = 2 * 1000 em config.lua do seu server ali tá 2 segundos
-
L3K0T's post in (Resolvido)Código Source Remover EXP dos Summons was marked as the answerremovi só substituir tfs 0.3.6
procura isso em creature.cpp
void Creature::addDamagePoints(Creature* attacker, int32_t damagePoints)
de uint32_t attackerId = 0; até
if(damagePoints > 0)
lastHitCreature = attackerId;
}
-
L3K0T's post in (Resolvido)Site On mas server Off - AJUDA was marked as the answerbind_only_global_address = true
pra
bind_only_global_address = false
e em 187.127.245.27
bote o endereço no-ip
precisa mudar o ip do cliente tbm
-
L3K0T's post in (Resolvido)[Pedido] "Use" no Surf was marked as the answeractions.xml
-
L3K0T's post in (Resolvido)[Erro] status.php was marked as the answeralter table `accounts` add `flag` varchar(50) DEFAULT '';
corrigido!
-
L3K0T's post in (Resolvido)[Erro] Install.php was marked as the answernão é o site que vc tenta instalar e sim o xampp erro no php.ini rsrs posso te ajudar! ai tinha um cara com o msm erro seu ai arrumei segue abaixo.
Vá em C:\xampp\php, abra o arquivo php.ini procure por error_reporting depois error_reporting = o que tiver lá, mude para error_reporting = E_ALL & ~E_NOTICE "reinicia seu apache" isso ai vlw!!!
-
L3K0T's post in (Resolvido)Como Add Pokemons was marked as the answeros pokemon vai em
actions/scripts >>>> Goback/Evolution/Order e Catch
Creaturescripts/scripts >>>> Goback
movements/scripts >>>> Portrait/
Monters/poke/ adicionar monstros = pokemon
talkactions m1 ao m12 e Tele se caso o pokemon tiver abilidade de teleportar
uma base de onde vc terá que passar!
-
L3K0T's post in (Resolvido)O player não nasce no lugar correto! was marked as the answervai no seu config.php do seu modern acc, procura com ctrl +f o nome POS
ali vai mostrar as posições e você coloca aonde o player vai ser logado e pra ter certeza que os players vai nascer vai no seu phpmyadmin e executa isso
UPDATE players SET posx = X, posy = Y, posz = Z;
X , Y e Z = troca por números das posições que você coloco no modern acc
Exemplo 1000,1001,7
ficaria
UPDATE players SET posx = 1000, posy = 1001, posz =7;
;............
-
L3K0T's post in (Resolvido)[Pedido] Invitar players na house. was marked as the answer<talkaction words="!buyhouse" filter="word-spaced" event="function" value="houseBuy"/>
<talkaction words="!sellhouse" filter="word-spaced" event="function" value="houseSell"/>
<talkaction words="alana sio" filter="word-spaced" event="function" value="houseKick"/>
<talkaction words="aleta grav" filter="word-spaced" event="function" value="houseDoorList"/>
<talkaction words="aleta sio" filter="word-spaced" event="function" value="houseGuestList"/>
<talkaction words="aleta som" filter="word-spaced" event="function" value="houseSubOwnerList"/>
<talkaction words="!leavehouse" filter="word-spaced" event="script" value="leavehouse.lua"/>
nome do arquivo gethouse
nome do arquivo Leavehouse
-
L3K0T's post in (Resolvido)[Pedido] Npc que Cobra Itens was marked as the answerlocal keywordHandler = KeywordHandler:new()
local npcHandler = NpcHandler:new(keywordHandler)
NpcSystem.parseParameters(npcHandler)
local talkState = {}
local pos = {x=152,y=58,z=7} --Pos para onde o player sera levado--
local itemid = 2468 --Id do item que vai ser removido do player--
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(not npcHandler:isFocused(cid)) then
return false
end
if msgcontains(msg, "offer") or msgcontains(msg, "help") then
selfSay("Eu posso te levar a TAL lugar por um "..getItemNameById(itemid).." item, fale {travel} se quizer viajar.", cid)
talkState[cid] = 0
elseif msgcontains(msg, 'travel') then
if doPlayerRemoveItem(cid, itemid, 1) then
selfSay("Boa viagem.", cid)
doTeleportThing(cid, pos)
else
selfSay("Voce nao tem o item nescessario.", cid)
end
end
return TRUE
end
npcHandler:setCallback(CALLBACK_MESSAGE_DEFAULT, creatureSayCallback)
npcHandler:addModule(FocusModule:new())
-
L3K0T's post in (Resolvido)Ajuda Erro Desesperador! was marked as the answermalz eu nm vi kkkk mas tu ja tem as tabela da guild lá em player em data base ? estão corretas lá ?
add na pasta lib global.lua e coloca isso dentro
function getPlayerNameByGUID(guid)
local name = 0
local resultId = db.getResult("SELECT `name` FROM `players` WHERE `id` = " .. guid)
if(resultId:getID() ~= -1) then
name = resultId.getDataString(resultId, "name")
resultId:free()
end
return name
end
-
L3K0T's post in (Resolvido)to com dificuldade em fazer uma quest was marked as the answervc colocou os scripts ao clicar no bau em actions ?
vai no seu RME EDITOR coloca um baú e em propiedade nele você coloca Unique ID 1721
fecha e salva. Agora
vai em data/actions/scripts e copia um arquivo.lua renomeia pra boost stone.lua e add isso.
em actions.xml coloca isso
se possível pode me marca como Melhor resposta vlw
lembrando em
doPlayerAddItem(cid,12415,1)
12415 é ID do seu item no caso a stone sua.
1 é a quatidade de stone ele vai pegar, no caso 1
3026 é a storage pra ele não clicar novamente no bau
doPlayerSendTextMessage(cid,22,"Voce ja pegou a Boost Stone") CASO ELE TIVER PEGO A STONE JÁ AI VC COLOCA OUTRA MSG SE QUISER.
-
L3K0T's post in (Resolvido)Erro ao adicionar Sprite no cliente pelo Object Builder was marked as the answerusa paint e a parte rosa pinta de rosa de novo esse rosa que fica não é o rosa correto, tente depois tão simples desenhar "use o Lápis com a cor rosa corretamente
"VOU FAZER PRA VC to sem fazer nada mesmo"
manda no face www.facebook.com/alexolekynho
-
L3K0T's post in (Resolvido)Erro Evolution.lua was marked as the answerta mais qual pokemon não evolui ? ao usar a stone, verifique no configuration.lua lá em Evolution e veja o pokemon que está tentando evoluir se ele está lá corretamente, caso ao contrário vai dar esse erro
verifique isso se ele conta lá configuration.lua aperta ctrl+f
acha
portrait
e corpse
depois evolution veja se ele tá lá
-
L3K0T's post in (Resolvido)Como entrar na database com site online? was marked as the answertenta http://127.0.0.1:8090/phpmyadmin
-
L3K0T's post in (Resolvido)Editor de client .dat erro 8.54 pokmon was marked as the answerAmigo não use o dat editor da muito debug no cliente recomendo o Object Builder muito bom é o melhor!
Download: Clique AQUI
Como usar: Clique AQUI
REP+
-
L3K0T's post in (Resolvido)Comando MYSQL phpmyadmin was marked as the answervou fazer 1 mn
UPDATE `players` SET `level`=300; << Level que vc quer que os players tenha
UPDATE `players` SET `health`=2000; << Life dos players
UPDATE `players` SET `healtmax`=2000; << life maximo tem quer ser igual ao de cima
UPDATE `players` SET `mana`=1400; <<mana dos players
UPDATE `players` SET `manamax`=1400; <<mana maxima dos players tem que ser igual a de cima
UPDATE `players` SET `cap`=3000; <<capacidade dos players podem carregar.
muda os números conforme o seu gosto!
-
L3K0T's post in (Resolvido)Erro Phpadmin was marked as the answerFaz manual
-
L3K0T's post in (Resolvido)[TFS 1.0] Não consigo logar GROUP 1 (players) was marked as the answerisso é fila!
-
L3K0T's post in (Resolvido)Error ao tentar banir algum jogador/membros da equipe do servidor was marked as the answervou postar o meu pois eu uso o mesminho
CREATE TABLE IF NOT EXISTS `bans` (
`id` int(10) unsigned NOT NULL AUTO_INCREMENT,
`type` tinyint(1) NOT NULL COMMENT '1 - ip banishment, 2 - namelock, 3 - account banishment, 4 - notation, 5 - deletion',
`value` int(10) unsigned NOT NULL COMMENT 'ip address (integer), player guid or account number',
`param` int(10) unsigned NOT NULL DEFAULT '4294967295' COMMENT 'used only for ip banishment mask (integer)',
`active` tinyint(1) NOT NULL DEFAULT '1',
`expires` int(11) NOT NULL,
`added` int(10) unsigned NOT NULL,
`admin_id` int(10) unsigned NOT NULL DEFAULT '0',
`comment` text NOT NULL,
`reason` int(10) unsigned NOT NULL DEFAULT '0',
`action` int(10) unsigned NOT NULL DEFAULT '0',
`statement` varchar(255) NOT NULL DEFAULT '',
PRIMARY KEY (`id`),
KEY `type` (`type`,`value`),
KEY `active` (`active`)
) ENGINE=InnoDB
abraços