Tudo que Natan Fernandes postou
-
[Pedido] !bless Ajuda
desculpa, vou testar aqui Deu esse erro na hora de executar a script, por gentileza, poderia analisar? mano testei aqui e alterei a parte de checkar a bless por nesse server ser diferente mas agr fala sempre q tem todas as bless ate quando morre e tenta denovo aqui a bless system: -- Author: Rodrigo (Nottinghster) - (OTLand, OTFans, XTibia, OTServBR) -- Country: Brazil -- From: Tibia World RPG OldSchool -- Email: [email protected] -- Compiler: Tibia World Script Maker (Libs Scripts) function CheckPlayerBlessings(cid) if isPromoted(cid) == TRUE then deathlossvalue = 7 else deathlossvalue = 10 end local MGB = mysqlQuery("SELECT `bless1`, `bless2`, `bless3`, `bless4`, `bless5` FROM `players` WHERE `name` = '" .. getPlayerName(cid) .. "';", "bless1, bless2, bless3, bless4, bless5") if(MGB.bless1) == "1" then blessone = 1 else blessone = 0 end if(MGB.bless2) == "1" then blesstwo = 1 else blesstwo = 0 end if(MGB.bless3) == "1" then blessthree = 1 else blessthree = 0 end if(MGB.bless4) == "1" then blessfour = 1 else blessfour = 0 end if(MGB.bless5) == "1" then blessfive = 1 else blessfive = 0 end FINISHEDDEATHLOSS = (deathlossvalue-((((blessone+blesstwo)+blessthree)+blessfour)+blessfive)) doPlayerSetLossPercent(cid, PLAYERLOSS_EXPERIENCE, FINISHEDDEATHLOSS) doPlayerSetLossPercent(cid, PLAYERLOSS_MANA, FINISHEDDEATHLOSS) doPlayerSetLossPercent(cid, PLAYERLOSS_SKILL, FINISHEDDEATHLOSS) return true end function RemovePlayerBlessing(cid) mysqlQuery("UPDATE `players` SET `bless1` = '0',`bless2` = '0',`bless3` = '0',`bless4` = '0',`bless5` = '0' WHERE `name` = \"" .. getPlayerName(cid) .. "\"", "SET") return true end function AddPlayerBlessing(cid, type) local MGB = mysqlQuery("SELECT `bless1`, `bless2`, `bless3`, `bless4`, `bless5` FROM `players` WHERE `name` = '" .. getPlayerName(cid) .. "';", "bless1, bless2, bless3, bless4, bless5") if type == 1 then if (MGB.bless1) == "0" then mysqlQuery("UPDATE `players` SET `bless1` = '1' WHERE `name` = '" .. getPlayerName(cid) .. "';", "SET") CheckPlayerBlessings(cid) return true else return false end elseif type == 2 then if (MGB.bless2) == "0" then mysqlQuery("UPDATE `players` SET `bless2` = '1' WHERE `name` = '" .. getPlayerName(cid) .. "';", "SET") CheckPlayerBlessings(cid) return true else return false end elseif type == 3 then if (MGB.bless3) == "0" then mysqlQuery("UPDATE `players` SET `bless3` = '1' WHERE `name` = '" .. getPlayerName(cid) .. "';", "SET") CheckPlayerBlessings(cid) return true else return false end elseif type == 4 then if (MGB.bless4) == "0" then mysqlQuery("UPDATE `players` SET `bless4` = '1' WHERE `name` = '" .. getPlayerName(cid) .. "';", "SET") CheckPlayerBlessings(cid) return true else return false end elseif type == 5 then if (MGB.bless5) == "0" then mysqlQuery("UPDATE `players` SET `bless5` = '1' WHERE `name` = '" .. getPlayerName(cid) .. "';", "SET") CheckPlayerBlessings(cid) return true else return false end end end acho que isso pode ajudar sla MANO FUCEI PRA CARAMBA, MAS AGR TA FUNCIONANDO TIPO ELE ADICIONA NA DATABASE TODA AS BLESS TA FUNCIONANDO OK, MAS AGR ELE NÃO CHECKA EU ALTEREI A LINHA Q ELE CHECKAVA A BLESS PARA ELE ADICIONAR, JA QUE NÃO ESTAVA FUNCIONANDO MAS AGR NÃO ELE NÃO CHECKA MAIS SO FICA TIRANDO DINHEIRO MESMO O PLAYER TENDO
- [Pedido] !bless Ajuda
- [Pedido] !bless Ajuda
- [Pedido] !bless Ajuda
- [Pedido] !bless Ajuda
-
AJUDA (mysql error)
Esta utilizando Xampp? Vertrigo ? a database que você criou se chama 'teste'?, cheque essas informações tanto na database no phpmyadmin quanto no config.lua
-
[Pedido] !bless Ajuda
Essas funções no caso fica em algum lugar especifico amigo?, nas sources? Bom amigo eu achei aqui, eu consegui entender, agora não dá mais erro, mas eu checkei na database e não esta adicionando as bless, eu percebi que no caso não esta executando a query slá pela script, aqui minha bless_system: function RemovePlayerBlessing(cid) mysqlQuery("UPDATE `players` SET `bless1` = '0',`bless2` = '0',`bless3` = '0',`bless4` = '0',`bless5` = '0' WHERE `name` = \"" .. getPlayerName(cid) .. "\"", "SET") return true end function AddPlayerBlessing(cid, type) local MGB = mysqlQuery("SELECT `bless1`, `bless2`, `bless3`, `bless4`, `bless5` FROM `players` WHERE `name` = '" .. getPlayerName(cid) .. "';", "bless1, bless2, bless3, bless4, bless5") if type == 1 then if (MGB.bless1) == "0" then mysqlQuery("UPDATE `players` SET `bless1` = '1' WHERE `name` = '" .. getPlayerName(cid) .. "';", "SET") CheckPlayerBlessings(cid) return true else return false end elseif type == 2 then if (MGB.bless2) == "0" then mysqlQuery("UPDATE `players` SET `bless2` = '1' WHERE `name` = '" .. getPlayerName(cid) .. "';", "SET") CheckPlayerBlessings(cid) return true else return false end elseif type == 3 then if (MGB.bless3) == "0" then mysqlQuery("UPDATE `players` SET `bless3` = '1' WHERE `name` = '" .. getPlayerName(cid) .. "';", "SET") CheckPlayerBlessings(cid) return true else return false end elseif type == 4 then if (MGB.bless4) == "0" then mysqlQuery("UPDATE `players` SET `bless4` = '1' WHERE `name` = '" .. getPlayerName(cid) .. "';", "SET") CheckPlayerBlessings(cid) return true else return false end elseif type == 5 then if (MGB.bless5) == "0" then mysqlQuery("UPDATE `players` SET `bless5` = '1' WHERE `name` = '" .. getPlayerName(cid) .. "';", "SET") CheckPlayerBlessings(cid) return true else return false end end end
- [Pedido] !bless Ajuda
-
[Pedido] Clickar Item vira outro item
Olá, bom queria pedir uma script que quando o player clicka-se em 'x' item com 'x' quantidade virasse 'x' item, exemplo ele tem 100 gold ele clicka vira 1 platium, por favor
-
ME AJUDA Erro ao criar conta
Bom, esta tudo funcionando, crio a conta fala que a conta foi criada, e ela realmente foi, eu só queria ajuda pq quando o player cria a conta aparece isso: [JavaScript] Cannot parse XML string: Deprecated: mysql_escape_string(): This function is deprecated; use mysql_real_escape_string() instead. in C:\xampp\htdocs\class\sql.php on line 174 Deprecated: mysql_escape_string(): This function is deprecated; use mysql_real_escape_string() instead. in C:\xampp\htdocs\class\sql.php on line 176 Deprecated: mysql_escape_string(): This function is deprecated; use mysql_real_escape_string() instead. in C:\xampp\htdocs\class\sql.php on line 176 Deprecated: mysql_escape_string(): This function is deprecated; use mysql_real_escape_string() instead. in C:\xampp\htdocs\class\sql.php on line 176 Deprecated: mysql_escape_string(): This function is deprecated; use mysql_real_escape_string() instead. in C:\xampp\htdocs\class\sql.php on line 174 Deprecated: mysql_escape_string(): This function is deprecated; use mysql_real_escape_string() instead. in C:\xampp\htdocs\class\sql.php on line 176 Deprecated: mysql_escape_string(): This function is deprecated; use mysql_real_escape_string() instead. in C:\xampp\htdocs\class\sql.php on line 176 Deprecated: mysql_escape_string(): This function is deprecated; use mysql_real_escape_string() instead. in C:\xampp\htdocs\class\sql.php on line 176 Account created! No caso, eu queria alterar a pagina para aonde ele vai quando ele ter sucesos em criar a conta, alguem poderia me auxiliar?
-
(ME AJUDA) Erros no website
Não
-
(ME AJUDA) Erros no website
Ola comunidade, bom eu estou com uma versão antiga de tibia, e achei um site compativel, ele esta criando a conta e esta tudo funcionando corretamente, mas no site aparece esse codigo no canto <<: Deprecated: mysql_escape_string(): This function is deprecated; use mysql_real_escape_string() instead. in C:\xampp\htdocs\class\sql.php on line 214 Deprecated: mysql_escape_string(): This function is deprecated; use mysql_real_escape_string() instead. in C:\xampp\htdocs\class\sql.php on line 216 Deprecated: mysql_escape_string(): This function is deprecated; use mysql_real_escape_string() instead. in C:\xampp\htdocs\class\sql.php on line 214 Deprecated: mysql_escape_string(): This function is deprecated; use mysql_real_escape_string() instead. in C:\xampp\htdocs\class\sql.php on line 216 Alguem poderia me ajudar?
-
[Pedido] Limite na Sword Fighting
Ola, boa tarde, como diz no titulo, eu queria um limite na swrod fighitng, por Creaturescripts, tinha no tibiaking, mais infelizmente fechou, alguem tem ?
-
[Pedido] Script de aparecer chat ao logar.
Ola, boa tarde, eu queria uma script, que assim, quando o player entrace, no game aparece isso,exemplo: Marcos, entrou no TibiaKING vBeta , a cor Verde << Marcos, Saiu do TibiaKing vBeta , a cor Branca << Versao: 854, Alguem pode ajudar?
-
[Duvida] Spell Torta
Pf alguem me ajuda preciso mt disso esso por no meio ñ acredito que não tenha ninguem que n saiba fazer isso, um amigo meu o jeffersonpetrolina fazinha pra mim so que ta off?alguem? Nenhum cara pra ajudar? nossa?
-
[Duvida] Spell Torta
ola eu to com uma spell que peguei aki so que sai torta séra que alguem poderia centralizala para mim? aki a foto de como estar: Aki a Spell: local area = { {3,3,3}, {3,3,3}, {3,3,3}, } function onDash(cid) local poslook = getCreatureLookPosition(cid) poslook.stackpos = STACKPOS_TOP_MOVEABLE_ITEM_OR_CREATURE if isWalkable(poslook, false, false, false) then if not isCreature(getThingfromPos(poslook).uid) then doMoveCreature(cid, getPlayerLookDirection(cid)) doSendMagicEffect(getPlayerPosition(cid), 245) return TRUE else doMoveCreature(cid, getPlayerLookDirection(cid)) doAreaCombatHealth(0, 1, poslook, area, -getCreatureSpeed(cid)*2/(getCreatureHealth(cid)/500), -getCreatureSpeed(cid)*2/(getCreatureHealth(cid)/500), 240) doCreatureSay(getThingfromPos(poslook).uid, 'Auch', TALKTYPE_MONSTER) doSetItemOutfit(getThingfromPos(poslook).uid, 0, 1000*1000) doSendMagicEffect(getCreaturePosition(getThingfromPos(poslook).uid), 245) return TRUE end end end function onCastSpell(cid, var) local distance = 2 for i = 0, distance do addEvent(onDash,90*i,cid) end return TRUE end function isWalkable(pos, creature, proj, pz)-- by Nord if getTileThingByPos({x = pos.x, y = pos.y, z = pos.z, stackpos = 0}).itemid == 0 then return false end if getTopCreature(pos).uid > 0 and creature then return false end if getTileInfo(pos).protection and pz then return false, true end local n = not proj and 2 or 2 for i = 0, 255 do pos.stackpos = i local tile = getTileThingByPos(pos) if tile.itemid ~= 0 and not isCreature(tile.uid) then if hasProperty(tile.uid, n) or hasProperty(tile.uid, 7) then return false end end end return true end @UP @UP @UP @UP
-
[PEDIDO] Sprite
Opa galera queria pedir umas sprites por favor emploro a todos (perdao de publiquei no lugar errado). Imagem: Retirei do NTO Brasil Pesso por favor que tragam para mim essa sprite ... aguardo :3
-
[Ajuda] RME e Debug
@UP
-
[Ajuda] RME e Debug
@UP
-
[Ajuda] RME e Debug
Não itendo to com as sprites do client perfeitamente olhem as imagems : Quando estou Editando no RME: é quando tento entrar tomo DebuG
-
[Pedido] Teleport Minato
Opa galera eu queria pedir uma spell , então vamo la eu queria um spell que fala o jutsu caia tal item, e você podia andar e dps fala o jutsu novamente e voltar para aonde estivesse o item, exemplo falo teleport, ae cai o item , ae eu ando,ando,ando dps falo teleport novamente e volto para aonde estava o item , eo item sai do chao e claro ...
-
[Duvida] Facil RME
Olha passei umas sprites pro client do meu narutibia com o dat editor ai eu abro o remers e n ta la os items ajuda pf?
-
[Duvida] Semi Dedicado
Opa galera estou pensando em comprar um semi dedicado para o server do NTO RobinHood ? qual eo melhorzinho pra rodar sem lag, sem preços caros em kkkk
-
[Duvida] Map Editor
Olhem coloquei novas sprites no client mais não aparece no Map Editor alugem ajuda?
-
[Pedido] .dat e .spr
Queria pedir para vocês .dat e spr do NTO Brasil <-- de Preferencia ou Nto Ultimate Aguardo.....