Ir para conteúdo

AndreAmaral

Campones
  • Total de itens

    9
  • Registro em

  • Última visita

1 Seguidor

Sobre AndreAmaral

Informações

  • Forma que conheci o xTibia
    Otservs
  • Sou
    Hoster

AndreAmaral's Achievements

  1. Ajuda Aqui Plz , qndo eu importo o arquivo.sql ele da esse erro aqui mano , n sei oq fazer pq n sou mt bom com sites , alguem me ajuda plz :X consulta SQL: ALTER TABLE `players` ADD `marrystatus` INT UNSIGNED NOT NULL DEFAULT '0' AFTER `marriage` ; Mensagens do MySQL : #1146 - Table 'otserv.players' doesn't exist
  2. MANO RESPONDE OS CARAS AI PLZZZ =S AS LETRAS TAO EMBARALHADAS E SEU TOPICO QUE VC BOTOU N EXISTE MAIS =[
  3. The Forgotten Server Versao 8.60 Nivel : Baixo / Medio Tipo Do Scrpt : Talkaction GALERA ME AJUDA AKI PELO AMOR D DEUS SO FALTA ISSO PA CONCLUIR MEU OT : Tenho um scipt aki que peguei no x tibia msm de Carro, porem eu queria que so usasse esse scrpt com uma chave.. O script funciona todo por talkaction ,queria que usasse as talkactions se tivesse um item, o Da Chave que o id é 8981 DAREI REP + È CLARO !! O Script è Esse Aqui : ________________________________________________________________________________________ --<< Configurable >>-- local storages = { speed = 314622, status = 352993 } -- Empty storages local cfg = { min_speed = 300, -- better not increase than that [ the least speed for a car ] max_speed = 200, -- better not decrease than this [ the maximum speed for a car ] Increase_per_command = 100, -- The speed increase or decrease value per each command (!car speed // !car slow) Car_Explode = true -- Keep it true , so your map isnt filled with cars } -->> END <<-- --<< Functions >>-- function isWalkable(pos, creature, pz)-- Modificações by Hudsin,Arkires e Pinpao Xtibia 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 3 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 return true end function getCarSpeed(cid) return getPlayerStorageValue(cid,storages.speed) end function setCarSpeed(cid,value) return setPlayerStorageValue(cid,storages.speed, getPlayerStorageValue(cid,storages.speed) + value) end function setCarStatus(cid,value) return setPlayerStorageValue(cid,storages.status,value) end function carMove(cid) return getPlayerStorageValue(cid,storages.status) > 0 and true or false end function move(cid,time) local dir = getCreatureLookDir(cid) local id = isInArray({1,3},getCreatureLookDir(cid)) and 7267 or 7266 local place = getPositionByDirection(getThingPos(cid),dir,1) if isWalkable(place,true,true,true) then doRemoveItem( getTileItemById(getThingPos(cid),7267).uid > 0 and getTileItemById(getThingPos(cid),7267).uid or getTileItemById(getThingPos(cid),7266).uid ) doTeleportThing(cid,place,false) addEvent(doSendMagicEffect,time+10,place,34) doCreateItem(id,1,place) if carMove(cid) then addEvent(move,time,cid,getCarSpeed(cid)) else doRemoveItem( getTileItemById(getThingPos(cid),7267).uid > 0 and getTileItemById(getThingPos(cid),7267).uid or getTileItemById(getThingPos(cid),7266).uid ) end else doCreatureSetNoMove(cid, 0) doPlayerSendTextMessage(cid,27,"You have hit somthng.") setCarStatus(cid,0) if cfg.Car_Explode then doRemoveItem( getTileItemById(getThingPos(cid),7267).uid > 1 and getTileItemById(getThingPos(cid),7267).uid or getTileItemById(getThingPos(cid),7266).uid ) doSendAnimatedText(getThingPos(cid),"Crashed",TEXTCOLOR_RED) doSendMagicEffect(getThingPos(cid),31) end end end --<< Functions Ends <<-- function onSay(cid, words, param, channel) if param == "speed" then if carMove(cid) then if getCarSpeed(cid) > cfg.max_speed then setCarSpeed(cid,-(cfg.Increase_per_command)) addEvent(doSendAnimatedText,10,getThingPos(cid),"Speeding",TEXTCOLOR_GREEN) else setCarSpeed(cid,cfg.max_speed) doPlayerSendCancel(cid,"The car is in its maximum speed.") end else doPlayerSendCancel(cid,"You should start moving first.") end elseif param == "slow" then if carMove(cid) then if getCarSpeed(cid) < cfg.min_speed then setCarSpeed(cid,cfg.Increase_per_command) addEvent(doSendAnimatedText,10,getThingPos(cid),"Slowing",TEXTCOLOR_GREEN) else setCarSpeed(cid,cfg.min_speed) doPlayerSendCancel(cid,"The car is in its minumium speed.") end else doPlayerSendCancel(cid,"You should start moving first.") end elseif param == "stop" then -- by DarkVelocity Xtibia if carMove(cid) then setCarStatus(cid,0) doCreatureSetNoMove(cid, 0) else doPlayerSendCancel(cid,"Car is already stopped.") end elseif param == "move" then if not carMove(cid) then if getTileItemById(getThingPos(cid),7267).uid < 1 and getTileItemById(getThingPos(cid),7266).uid < 1 then local item = isInArray({1,3},getCreatureLookDir(cid)) and 7267 or 7266 doCreateItem(item,1,getThingPos(cid)) end setPlayerStorageValue(cid,storages.speed,cfg.min_speed) setCarStatus(cid,1) doCreatureSetNoMove(cid, 1) move(cid,getCarSpeed(cid)) else doPlayerSendCancel(cid,"Car is already moving.") end end end return true end ________________________________________________________________________________________ AGRADEÇO DESDE JA OBRIGADO !!!!!!!!!!!!!!!!!!!!! Esqueci De Falar Que o Comando Que Tou Tentando Colocar Pra Usar o Scrpt SE TIVER TAL ITEM ai ensima é o seguinte n sei se ta certo local config= { id = 8981, -- id do item que precisa count = 1, -- qntos items precisa Remove = false -- true para remover o item depois de usar e false para não remover } function onSay(cid, words, param) if getPlayerItemCount(cid, config.id) < config.count then return doPlayerSendTextMessage(cid, 27, "Você precisa de "..config.count.." "..getItemNameById(config.id).." para usar este comando.") end JA TENTEI DE TUDO MAS N FUNCIONA PQ ELE DIS QUE TA PRECISANDO DE UM END PRA FEIXA A FUNÇAO IF , SO QUE JA METI O END EM TUDO QUE E LUGAR ( LA ELE ) kkk' MAS N FUNCIONOU NAO =[[[ VLW AE GALERA :X
  4. MANO ME AJUDA AKI PLZZZZZZZZZZz =[ EU BOTEI NO MEU OT O SYSTEM FUNFOU CERTINHO ( SÒ TEM UM COISA QUE QUANDO O CARA DESLOGA NO CARRO ELE FICA NO MAP ) MAS TA DE BOA..... TEM COMO POR PRA USAR ESSAS TALKACTION SÒ SE TIVER UM CERTO ITEM ???? (TIPO A PESSOA TERIA QUE TER UMA CHAVE PARA PODER USAR O CARRO ) DAÌ MELHORARIA O RPG E SO QM FIZESSE UMA QST PEGARIA ESSA KEY .... TO PRECISANDO URGENTE DISSO.. VLW AE MANOOO =DDD REP PRA VC++ E PRA QM ME AJUDAR !!!
  5. Versão 8.60 The Forgotten Server Nivel : Baixo / Medio GALERA ME AJUDEM AI PLZZZZZZZZZZZ , MEU SERVER TAVA NORMAL MAS DE UMA HORA PRA OUTRA TA DANDO BUG NAS PORTAS N CONSIGO ABRIR NENHUMA PORTA INCLUSIVE AS DAS HOUSES APARECE ESSE ERROR : 22:25 The door seems to be sealed against unwanted intruders. AS PORTAS SÂO COMUNS DE HOUSE... AGRADEÇO DESDE JA E DAREI REP ++ PRA QM AJUDAR AI =X TO PRECISANDO DISSO PRA POR O OT ON PLZZZ :X
  6. Como Que Eu Adiciono o item no item.otb ??! :S se não salvar fica sem graça =[ :X
  7. mano esse topico nem se compara com o scrpt que o mock fez ;S , o do mock é 1000 x Melhor! , e esse tmb o do cara ai NÃO SALLVA AS PAREDES QnDO O OT CAI! :S... Abraço..
  8. Versao : 8.60 The Forgotten Server Nivel : Baixo / Medio GALERA PLZ AJUDA AQUI DOU REPPPP +++++ , é o seguinte o mock postou um scrpt dele só que n to conseguindo instalar ele pq ele explicou por cima ... e n entendo mt de scrpt não , Daí TO PRECISANDO URGENTE que alguem me ajude a instalar esse scrpt no meu server ;[ Como eu nao Sei Organizar o Scrpt Vou Por O Link Aqui Dele AGRADEÇO DESDE JA, E QM AJUDAR DAREI 3 REP +++ 3 DIAS SEGUIDOS PLZ AJUDEM AE =[ VLWWWWWWWWWWW O Scrpt Pode-se Encontrar AQUI : http://otland.net/f8...n-house-132895/
  9. Versão - 8.60 The Forgotten Server Nivel : baixo/medio Galera To Precisando De Uma Ajudinha aqui Besta qndo eu ponho o ot On ta dando esse erro no Exe : [Warning - Houses::loadFromXml] House entry not set for: Forgotten headquarter (Flat 1, Area 42) (1760) Só que eu ja fui no house.xml e ja adicionei a posição de frente da porta de cada house e continua dando error...Parece que ñ ta salvando as modificações que fiz no Xml. (Fiz isso com o ot Feixado e Aberto). È besta essa duvida mas DOU REP + PRA QM AJUDAR
  10. Desculpaê Reviver o topico mas to precisando Mt Desse Npc TMB!!! Mesmo Motivo Dele....
  11. VLWWW VODKARTTTT VOU TESTAR E JA VOLTO PRA POSTAR SE FUNFOU! =D Nem Funfou Manoooo =(((((((((((( n da Bug nenhum nem dá a xp... Botei No Login.lua e botei no CreatureScrpt a Function type "PrepareDeath" mas n foi n :S
  12. Tipo do script: CreatureScript Protocolo (versão do Tibia): 8.60 Servidor utilizado: The Forgotten Server Nível de experiência: baixa/media Adicionais/Informações: DAREI 3x REP +++ Galera To Precisando URGENTEMENTE :S De um scrpt que qndo a pessoa matar em UMA determinada AREA Ganhe XP, ou então qndo matar em uma AREA ganhe um item ,porem queria pedir pra vcs se ganhar um item se pode fazer um npc que troque o item por Xp . Um brother tentou me ajudar mas ele ta sem tempo pra ver ele me mando esse scrpt aqui pra ganhar xp qndo matar , porem esta com o seguinte erro : [19/12/2011 12:24:51] [Error - LuaScriptInterface::loadFile] data/creaturescripts/scripts/pvpxp.lua:3: unexpected symbol near 'local' [19/12/2011 12:24:51] [Warning - Event::loadScript] Cannot load script (data/creaturescripts/scripts/pvpxp.lua) [19/12/2011 12:24:51] data/creaturescripts/scripts/pvpxp.lua:3: unexpected symbol near 'local' DAÍ EU TIRO TODOS "LOCAL" E DA ESSE ERRO AQUI : [Error - LuaScriptInterface::loadFile] data/creaturescripts/scripts/pvpxp.lua:5: '(' expected near 'gainExperience' [Warning - Event::loadScript] Cannot load script (data/creaturescripts/scripts/pvpxp.lua) data/creaturescripts/scripts/pvpxp.lua:5: '(' expected near 'gainExperience' O SCRIPT QUE ELE ME MANDOU E ESSE AQUI : local pvpParcent = 2 -- porcentagem, 2 = 20% local fromPosition = {x = 1186, y = 1072, z = 7}, -- canto superior esquerdo do teu mapa local toPosition = {x = 1195, y = 1081, z = 7}, -- canto inferior direito do teu mapa function gainExperience(cid, lastHitKiller, mostDamageKiller) if (isPlayer(lastHitKiller) and isPlayer(mostDamageKiller)) and (lastHitKiller ~= mostDamageKiller) then doPlayerAddExp(lastHitKiller, (getPlayerExperience(cid)/200)*pvpParcent) end end function onPrepareDeath(cid, lastHitKiller, mostDamageKiller) if isPlayer(cid) then if isInArea(getPlayerPosition(cid), fromPosition, toPosition) then gainExperience(cid, lastHitKiller, mostDamageKiller) end end return TRUE end AGRADEÇO DESDE JA! :X
  13. Tipo do script: CreatureScript Protocolo (versão do Tibia): 8.60 Servidor utilizado: The Forgotten Server Nível de experiência: baixa/media Adicionais/Informações: DAREI 3x REP +++ Galera To Precisando URGENTEMENTE :S De um scrpt que qndo a pessoa matar em UMA determinada AREA Ganhe XP, ou então qndo matar em uma AREA ganhe um item ,porem queria pedir pra vcs se ganhar um item se pode fazer um npc que troque o item por Xp . Um brother tentou me ajudar mas ele ta sem tempo pra ver ele me mando esse scrpt aqui pra ganhar xp qndo matar , porem esta com o seguinte erro : [19/12/2011 12:24:51] [Error - LuaScriptInterface::loadFile] data/creaturescripts/scripts/pvpxp.lua:3: unexpected symbol near 'local' [19/12/2011 12:24:51] [Warning - Event::loadScript] Cannot load script (data/creaturescripts/scripts/pvpxp.lua) [19/12/2011 12:24:51] data/creaturescripts/scripts/pvpxp.lua:3: unexpected symbol near 'local' DAÍ EU TIRO TODOS "LOCAL" E DA ESSE ERRO AQUI : [Error - LuaScriptInterface::loadFile] data/creaturescripts/scripts/pvpxp.lua:5: '(' expected near 'gainExperience' [Warning - Event::loadScript] Cannot load script (data/creaturescripts/scripts/pvpxp.lua) data/creaturescripts/scripts/pvpxp.lua:5: '(' expected near 'gainExperience' O SCRIPT QUE ELE ME MANDOU E ESSE AQUI : local pvpParcent = 2 -- porcentagem, 2 = 20% local fromPosition = {x = 1186, y = 1072, z = 7}, -- canto superior esquerdo do teu mapa local toPosition = {x = 1195, y = 1081, z = 7}, -- canto inferior direito do teu mapa function gainExperience(cid, lastHitKiller, mostDamageKiller) if (isPlayer(lastHitKiller) and isPlayer(mostDamageKiller)) and (lastHitKiller ~= mostDamageKiller) then doPlayerAddExp(lastHitKiller, (getPlayerExperience(cid)/200)*pvpParcent) end end function onPrepareDeath(cid, lastHitKiller, mostDamageKiller) if isPlayer(cid) then if isInArea(getPlayerPosition(cid), fromPosition, toPosition) then gainExperience(cid, lastHitKiller, mostDamageKiller) end end return TRUE end AGRADEÇO DESDE JA! :X
  14. Alguem Me Ajuda Ae Galera namorall!!!, Sei que tou no topico errado mas tem um pouco haver.. ;S Preciso de um Tile que Bloquei Magias Ou Entao de Preferencia uma Area que n possa soltar magias ... Dou Rep ++++++ =xx Abraço ae ;*
  15. Tipo do script: ACTION Ou Movement Protocolo (versão do Tibia): 8.60 Servidor utilizado: The Forgotten Server Nível de experiência: media /baixa Adicionais/Informações: GALERA TO MAIS DE 2 DIAS PROCURANDO ESSE SCRPT N AXO EM NENHUM LGAR ALGUEM PODE ME AJUDAR AI ??!! =SSSSSS.. - Preciso De um scrpt que uma determinada Area Do mApa Bloquei SPELLS ou Entao um Piso Que BLoquei Spells!!
  • Quem Está Navegando   0 membros estão online

    • Nenhum usuário registrado visualizando esta página.
×
×
  • Criar Novo...