Ir para conteúdo

angeldoido

Visconde
  • Total de itens

    272
  • Registro em

  • Última visita

  • Dias Ganhos

    2

Tudo que angeldoido postou

  1. facil cara so coloka assim {t1=2476,25, acho q é assim no casso id 2476 e presissa ter 25 '-' n sei se vai da acho q é assim
  2. O script foi testado em 8.60 Sim so add no script em actions, talk a storage do seu VIP
  3. Mto obrigado vai fica segunda ^^ Tipow é q a primeira tinha mtos detalhes q destacava+++ (NAUM COMBINAVA) ja a segunda RUA presiss anem fala ne cidade combina de boa =D vlw galera Mto obrigado pelas opinioes sinceras ^^
  4. angeldoido

    Map Viwn

    Gente to editando 1 map so q achei 2 piso q combina, 1 piso se destaca e outro da detalhes no OT, porem os 2 fica bom,confira SS Outra \/ Bom na imagem 1 Podem ver q se destaca +o mapa Porem na imgem 2 reparem q da +Detalhe no Ot
  5. Nome:marcos Nick: Marcos ' Idade: 16 Cargo: Script,mapper,webmaster,programador,spellmaker,spriter,mexo com graficoo etc.. sei mexe com tudo '- menos Protocolos de otserv Experiência: 4 a 5 anos '- Disponibilidade de Horario:noite inteirinha Porque deseja entrar no HPO?:pq sei bastante coisa =D ssakposokapo brinks tipow gosto de servidor organizados =D Trabalhos:tenho uns trabalho, so que n revelo =D Contato/msn:mar_cos75@hotmail.com
  6. Onde muda a posição da chuva n fallo onde e n da pra intende, tem um monte de cordenação ali '- cole num code onde tem q muda, vllws
  7. desorganizado sem code e sem foto, n ganha +rep n -' comcerta isso
  8. angeldoido

    Rep Sistem

    Galera tipow keria um tipoe de rep sistem de mata monster ganha +rep mata player perde -rep e aparece o rep sistem no look, eu tenho uma versao aki mais naum funciono assim... (script do otland) <?xml version="1.0" encoding="UTF-8"?> <!-- To use this system, execute query: ALTER TABLE `players` ADD COLUMN `rep` INT( 11 ) NOT NULL DEFAULT '0' COMMENT 'Cyber''s REPSystem © OTLand.net'; --> <mod name="Cyber's REP System" revision="6.1" author="Cybermaster" web="otland.net" enabled="no" released="August2010" credits="Sync;Shawak;Chris;nsanee"><config name="repSystem"><![CDATA[ rep = { --[[ CONFIG ]]-- interval = 3 * 60, --This is [3] hours, in minutes. Time to be online to gain [1] Opinion Point. minLevel = 20, --From this level onwards player can use commands pvpLevel = 30, --Minimum level for PVP Rep'ing required = 5, --Opinion points required to repute with talkaction command exhaustion = 60, --Seconds to wait to be able to use !rep command again power = false, --Use RepPower Feature? OPTIONS 1:true 2:false --[[ STORAGES ]]-- exhaust = 5045, --Exhaustion for !rep command. lastName = 5036, --Used to store the last repped's GUID lastKilled = 5037, --Used to store the last killed's GUID opinion = 5038, --Used to store the opinion points online = 5039, --Used to store online minutes autoOpinion = function(cid) if not isPlayer(cid) then return true end doCreatureSetStorage(cid, rep.online, getCreatureStorage(cid, rep.online)+1) if getCreatureStorage(cid, rep.online) >= rep.interval then doCreatureSetStorage(cid, rep.online, 0) doSendAnimatedText(getThingPos(cid), '+1', TEXTCOLOR_LIGHTBLUE) doCreatureSetStorage(cid, rep.opinion, getCreatureStorage(cid, rep.opinion)+1) doPlayerSendTextMessage(cid, 27, 'You have just obtained an opinion point.') end repEvent = addEvent(rep.autoOpinion, 60 * 1000, cid) end, getArticle = function(cid, uppercase) return (getPlayerSex(cid) == 0 and (uppercase and 'Sh' or 'sh') or (uppercase and 'H' or 'h')) .. 'e' end, getPoints = function(cid) local result = db.getResult('SELECT `rep` FROM `players` WHERE `id` = '.. getPlayerGUID(cid)) local data = result:getDataInt('rep') result:free() return data end, getPower = function(points) local power = {{0,1},{300,2},{500,3},{1000,4},{1500,5},{2000,6},{5000,7}} table.sort(power, function(a, b) return a[1] > b[1] end) for _, t in ipairs(power) do if math.abs(points) >= t[1] then return t[2] end end return power[1][2] end, getRank = function(points) local ranks = { {-5000, 'Power Abuser (*<<==========)'}, {-2000, 'Evil (=*<==========)'}, {-1500, 'Slayer (==*==========)'}, {-1000, 'Killer (===|=========)'}, {-500, 'Villain (====|========)'}, {-300, 'Creeping (=====|=======)'}, {0, 'Unknown (======|======)'}, {300, 'Avowed (=======|=====)'}, {500, 'Popular (========|====)'}, {1000, 'Hailed (=========|===)'}, {1500, 'Acclaimed (==========+==)'}, {2000, 'Hero (==========>+=)'}, {5000, 'Legend (==========>>+)'} } if points > -1 then table.sort(ranks, function(a, b) return a[1] > b[1] end) for _, t in ipairs(ranks) do if points >= t[1] then return t[2] end end else table.sort(ranks, function(a, b) return a[1] < b[1] end) for _, t in ipairs(ranks) do if points <= t[1] then return t[2] end end end return ranks[1][2] end, set = function(cid, points) db.executeQuery('UPDATE `players` SET `rep` = ' .. points .. ' WHERE `id` = ' .. getPlayerGUID(cid)) end, add = function(cid, amount, color) db.executeQuery('UPDATE `players` SET `rep` = `rep` + ' .. amount .. ' WHERE `id` = ' .. getPlayerGUID(cid)) doSendAnimatedText(getThingPos(cid), '+REP', color and color or math.random(255)) doPlayerSendCancel(cid, 'You have just been hailed and gained '.. amount ..' reputation points.') end, remove = function(cid, amount, color) db.executeQuery('UPDATE `players` SET `rep` = `rep` - ' .. amount .. ' WHERE `id` = ' .. getPlayerGUID(cid)) doSendAnimatedText(getThingPos(cid), '-REP', color and color or math.random(255)) doPlayerSendCancel(cid, 'You have just been repudiated and lost '.. amount ..' reputation points.') end, format = function(str) str = tostring(str):reverse() str = str:gsub("(%d)(%d)(%d)", '%1%2%3' .. (',' or ' '), math.ceil(str:len() / 3)-1) return str:reverse() end, } ]]></config> <event type="login" name="repRegister" event="script"><![CDATA[ domodlib('repSystem') function onLogin(cid) repEvent = addEvent(rep.autoOpinion, 60 * 1000, cid) if getCreatureStorage(cid, rep.opinion) == -1 then doCreatureSetStorage(cid, rep.online, 0) doCreatureSetStorage(cid, rep.opinion, 0) end registerCreatureEvent(cid, "repLook") registerCreatureEvent(cid, "repKill") registerCreatureEvent(cid, "repMonster") return true end ]]></event> <event type="logout" name="repCancel" event="script"><![CDATA[ domodlib('repSystem') function onLogout(cid) stopEvent(repEvent) return true end ]]></event> <event type="look" name="repLook" event="script"><![CDATA[ domodlib('repSystem') function onLook(cid, thing, position, lookDistance) if isPlayer(thing.uid) and thing.uid ~= cid then doPlayerSetSpecialDescription(thing.uid,'\n'.. rep.getArticle(thing.uid, true)..' is ' .. rep.getRank(rep.getPoints(thing.uid)) ..'.') return true elseif thing.uid == cid then local string = 'You see yourself.' if getPlayerFlagValue(cid, PLAYERFLAG_SHOWGROUPINSTEADOFVOCATION) then string = string..' You are '.. getPlayerGroupName(cid) ..'.' elseif getPlayerVocation(cid) ~= 0 then string = string..' You are '.. getPlayerVocationName(cid) ..'.' else string = string..' You have no vocation.' end string = string..' You are '.. rep.getRank(rep.getPoints(cid)) ..'.' if getPlayerNameByGUID(getPlayerPartner(cid), false, false) ~= nil then string = string..' You are '.. (getPlayerSex(cid) == 0 and 'wife' or 'husband') ..' of '.. getPlayerNameByGUID(getPlayerPartner(cid)) ..'.' end if getPlayerGuildId(cid) > 0 then string = string..' You are ' .. (getPlayerGuildRank(cid) == '' and 'a member' or getPlayerGuildRank(cid)) ..' of the '.. getPlayerGuildName(cid) string = getPlayerGuildNick(cid) ~= '' and string..' ('.. getPlayerGuildNick(cid) ..').' or string..'.' end if getPlayerFlagValue(cid, PLAYERCUSTOMFLAG_CANSEECREATUREDETAILS) then string = string..'\nHealth: ['.. getCreatureHealth(cid) ..' / '.. getCreatureMaxHealth(cid) ..'], Mana: ['.. getCreatureMana(cid) ..' / '.. getCreatureMaxMana(cid) ..'].' string = string..'\nIP: '.. doConvertIntegerToIp(getPlayerIp(cid)) ..'.' end if getPlayerFlagValue(cid, PLAYERCUSTOMFLAG_CANSEEPOSITION) then string = string..'\nPosition: [X:'.. position.x..'] [Y:'.. position.y..'] [Z:'.. position.z..'].' end doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, string) return false end return true end]]> </event> <event type="kill" name="repKill" event="script"><![CDATA[ domodlib('repSystem') local t = { [sKULL_WHITE] = 15, [sKULL_RED] = 20, [sKULL_BLACK] = 40, [sKULL_NONE] = -30, } function onKill(cid, target, lastHit) if isPlayer(cid) and isPlayer(target) and getPlayerIp(cid) ~= getPlayerIp(target) and getCreatureStorage(cid, rep.lastKilled) ~= getPlayerGUID(target) and not getTileInfo(getThingPos(cid)).nopvp or not getTileInfo(getThingPos(cid)).optional then --THE KILLER if t[getCreatureSkullType(target)] and getPlayerLevel(target) >= rep.pvpLevel then doSendAnimatedText(getThingPos(cid), getCreatureSkullType(target) == 0 and '-REP' or '+REP', math.random(255)) doCreatureSetStorage(cid, rep.lastKilled, getPlayerGUID(target)) rep.set(cid, rep.getPoints(cid)+t[getCreatureSkullType(target)]) doPlayerSendCancel(cid, 'You '.. (getCreatureSkullType(target) == 0 and 'lose' or 'gain') ..' reputation because you killed a player.') end --THE VICTIM if rep.getPoints(target) == 0 then return true elseif rep.getPoints(target) > 0 then rep.remove(target, 5, TEXTCOLOR_RED) doPlayerSendCancel(target, 'You lose reputation because you were killed by a player.') else rep.add(target, 5, TEXTCOLOR_LIGHTBLUE) doPlayerSendCancel(target, 'You lose reputation because you were killed by a player.') end end return true end]]> </event> <event type="kill" name="repMonster" event="script"><![CDATA[ domodlib('repSystem') local monster = { --add monsters names only in lowercase ['demon'] = 3, ['behemoth'] = 4, ['hellfire fighter'] = 5, ['orshabaal'] = 10, } function onKill(cid, target, lastHit) if isPlayer(cid) and isMonster(target) and monster[getCreatureName(target):lower()] and lastHit then rep.add(cid, monster[getCreatureName(target):lower()]) end return true end]]> </event> <talkaction log="yes" words="/hail;/fuck;/set" access="4" event="buffer"> <![CDATA[ domodlib('repSystem') if param == '' then doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE,'[REP_SYSTEM] You must write a player\'s name.') return true end local t = string.explode(param, ',') local tid = getPlayerByNameWildcard(t[1]) if not isPlayer(tid) then doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, '[REP_SYSTEM] Player ' .. param .. ' not found.') return true end if not t[2] and isPlayer(tid) then if words == '/hail' then rep.add(tid, 5, TEXTCOLOR_TEAL) doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, '[REP_SYSTEM] You added +5 rep points to ' .. getPlayerName(tid) .. ', and now ' .. rep.getArticle(tid, false) .. ' has ' .. rep.getPoints(tid) .. ' points.') return true end if words == '/fuck' then rep.remove(tid, 5, TEXTCOLOR_RED) doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, '[REP_SYSTEM] You removed -5 rep points to ' .. getPlayerName(tid) .. ', and now ' .. rep.getArticle(tid, false) .. ' has ' .. rep.getPoints(tid) .. ' points.') return true end end if t[2] and isInArray({'/set','/hail','fuck'}, words) then if not tonumber(t[2]) then doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, '[REP_SYSTEM] Reputation amount is invalid.') return true end end if words == '/hail' then rep.add(tid, t[2], TEXTCOLOR_TEAL) doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, '[REP_SYSTEM] You added ' .. t[2] .. ' rep points to ' .. getPlayerName(tid) .. ', and now ' .. rep.getArticle(tid, false) .. ' has ' .. rep.getPoints(tid) .. ' points.') return true end if words == '/fuck' then rep.remove(tid, t[2], TEXTCOLOR_RED) doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, '[REP_SYSTEM] You removed ' .. t[2] .. ' rep points to ' .. getPlayerName(tid) .. ', and now ' .. rep.getArticle(tid, false) .. ' has ' .. rep.getPoints(tid) .. ' points.') return true end if t[2] and words == '/set' then rep.set(tid, t[2]) doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, '[REP_SYSTEM] You have set ' .. getPlayerName(tid) .. '\'s points to ' .. rep.getPoints(tid)) else doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, '[REP_SYSTEM] Absolute reputation amount not specified.') return true end if not t[2] then doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, '[REP_SYSTEM] Absolute reputation amount not specified.') return true end return true]]> </talkaction> <talkaction words="!rep" event="buffer"><![CDATA[ domodlib('repSystem') if exhaustion.check(cid, rep.exhaust) then doPlayerSendCancel(cid, 'You can\'t use this command yet['..exhaustion.get(cid, rep.exhaust)..'].') return true else exhaustion.set(cid, rep.exhaust, rep.exhaustion) end if param ~= '' then local str, value, name, result = '', '',' ', 0, nil if isInArray({'hero','pos','1','+'}, param) then str,value,name = '[#]-[Name]-[Points]-[Rank]\n--[Positive Reputation Highscores]--\n','rep','name' result = db.getResult('SELECT `name`, `rep` FROM `players` WHERE `rep` > 0 AND `name` NOT LIKE "%Sample" AND `name`!= "Account Manager" AND `deleted` = 0 AND `group_id` = 1 ORDER BY `rep` DESC LIMIT 10;') elseif isInArray({'evil','neg','2','-'}, param) then str,value,name = '[#]-[Name]-[Points]-[Rank]\n--[Negative Reputation Highscores]--\n','rep','name' result = db.getResult('SELECT `name`, `rep` FROM `players` WHERE `rep` < 0 AND `name` NOT LIKE "%Sample" AND `name`!= "Account Manager" AND `deleted` = 0 AND `group_id` = 1 ORDER BY `rep` ASC LIMIT 10;') else doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, 'Unknown parameter, use only +, -, 1, 2.') return true end if isInArray({-1,nil,false,''},result:getID()) then doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, 'No results were found.') return true end local i = 1 while true do str = str .. '\n ' .. i .. '. ' .. result:getDataString('name') .. ' - [' .. result:getDataInt(value) .. '] - ' .. rep.getRank(result:getDataInt(value)) i = i + 1 if not(result:next()) then break end end result:free() doPlayerPopupFYI(cid, str) return true elseif param == '' then local points, action, name = rep.getPoints(cid), false, getPlayerNameByGUID(getCreatureStorage(cid, rep.lastName), false, false) doPlayerSendTextMessage(cid, 27, 'You have '.. rep.format(points) ..' reputation points. You have ' .. getCreatureStorage(cid, rep.opinion) .. ' opinion points and you will gain one '.. (getCreatureStorage(cid, rep.opinion) > 0 and 'more ' or '') ..'in '.. rep.interval - getCreatureStorage(cid, rep.online) ..' minutes.'.. (rep.power and ' Your Rep Power is ' .. rep.getPower(points) ..'.' or '')..(name ~= nil and ' You last reputed ' .. name .. '.' or '')) if points > 4999 then --female rep+++ queen outfit disguise, text, action = getPlayerSex(cid) == 0 and 331 or 332, getPlayerSex(cid) == 0 and 'Queen!!' or 'King!!', true elseif points > 1999 then --rep++ cm outfit disguise, text, action = 73, 'Hero!!', true elseif points > 1499 then --rep+ hero outfit disguise, text, action = 63, 'Acclaimed!!', true elseif points < -4999 then --rep*** devil outfit disguise, text, action = 334, 'P.O.!', true elseif points < -1999 then --rep** pig outfit disguise, text, action = 306, 'Evil!!', true elseif points < -1499 then --rep* orc outfit disguise, text, action = 5, "Slayer!!", true end if action and getCreatureOutfit(cid).lookType ~= disguise then doSetCreatureOutfit(cid, {lookType = disguise}, -1) doSendAnimatedText(getThingPos(cid), text, math.random(255)) return true end end return true]]> </talkaction> <talkaction words="!hail;!fuck" event="buffer"><![CDATA[ domodlib('repSystem') if param == '' then doPlayerSendCancel(cid, 'Command requires a player\'s name.') return true end local target = getPlayerByNameWildcard(param) if not isPlayer(target) then doPlayerSendCancel(cid, 'That player does not exist or is offline.') return true end if getPlayerLevel(cid) < rep.minLevel then doPlayerSendCancel(cid,'You may repute from level ' .. rep.minLevel ..' onwards.') return true end if getPlayerIp(cid) == getPlayerIp(target) then doPlayerSendCancel(cid, 'You may not repute neither yourself nor anyone in your IP.') return true end if getPlayerGUID(target) == getCreatureStorage(cid, rep.lastName) then doPlayerSendCancel(cid, 'You may not repute that player two times in a row.') return true end if getCreatureStorage(cid, rep.opinion) < rep.required then doPlayerSendCancel(cid, 'You do not have enough opinion points to repute.') return true end if words == '!hail' then doCreatureSetStorage(cid, rep.lastName, getPlayerGUID(target)) doCreatureSetStorage(cid, rep.opinion, getCreatureStorage(cid, rep.opinion)-rep.required) doPlayerSendCancel(cid, 'You have just reputed ' .. getCreatureName(target) .. '. You have ' .. getCreatureStorage(cid, rep.opinion) .. ' opinion points left.') rep.add(target, rep.power and rep.getPower(rep.getPoints(cid)) or 5, TEXTCOLOR_LIGHTBLUE) elseif words == '!fuck' then doCreatureSetStorage(cid, rep.lastName, getPlayerGUID(target)) doCreatureSetStorage(cid, rep.opinion, getCreatureStorage(cid, rep.opinion)-rep.required) doPlayerSendCancel(cid, 'You have just reputed ' .. getCreatureName(target) .. '. You have ' .. getCreatureStorage(cid, rep.opinion) .. ' opinion points left.') rep.remove(target, rep.power and rep.getPower(rep.getPoints(cid)) or 5, TEXTCOLOR_RED) end return true ]]></talkaction> </mod>
  9. essa vip q vc mando é q nem a q eu mandei, a minha eu testei e tals.... entao cara mandnei 3 script ae pra vc testa e ve se funfa
  10. Tenta assim, em actions\script function onStepIn(cid, item, position, fromPosition) timenow = os.time() quantity = math.floor((getPlayerStorageValue(cid,13540) - timenow)/(500*24)) if isPlayer(cid) then if quantity > 0 then doPlayerSendTextMessage(cid, MESSAGE_EVENT_DEFAULT, "Você ainda tem ".. quantity .." dia(s) restante(s) de VIP.") else dir = getPlayerLookDir(cid) pos = getCreaturePosition(cid) if dir == 0 then newpos = {x=pos.x, y=pos.y+1, z=pos.z} elseif dir == 2 then newpos = {x=pos.x, y=pos.y-1, z=pos.z} elseif dir == 1 then newpos = {x=pos.x-1, y=pos.y, z=pos.z} elseif dir == 3 then newpos = {x=pos.x+1, y=pos.y, z=pos.z} end doTeleportThing(cid, newpos, dir) doPlayerSendTextMessage(cid, MESSAGE_EVENT_DEFAULT, "Somente jogadores VIPs podem entrar nesta área.") end end end depois em actions.xml e coloka essa tag <movevent type="StepIn" actionid="13540" event="script" value="vipsystem.lua"/> o numero na tag "13540" e no script tem q ser alterado pelo mesmo storage do seu sistema de vip, depois q altera, vai no map editor e coloka em action ID "13540" no caso a storage do seu SISTEMA VIP, se ajudei +REP LENBRADO Q SE FOR COLOKA NO TELEPORTE COLOKE UMA CORDENADA Q IRA LEVA ELE PRA OUTR CITY VIP, NO CASO SE ELE N FOR VIP FORÇA A EMPURRA ELE PRA TRAIS Script 2° o player compra vip e ja fica com nome [VIP] e quando vip caba o nome [VIP] sai automaticamente 'testado em 9.10 e 8.60... function onLogin(cid) if getPlayerStorageValue(cid, 13540) - os.time() > 0 then setPlayerStorageValue(cid, 9898, 1) end local pos = {x = 157, y = 50, z = 7} -- posiçao do templo. function Vodka(cid) if isPlayer(cid) then db.executeQuery("UPDATE `players` SET `name` = '"..string.sub(getCreatureName(cid), 7).."' WHERE `id` = "..getPlayerGUID(cid)..";") doRemoveCreature(cid) end end if getPlayerStorageValue(cid, 9898) == 1 and getPlayerStorageValue(cid, 13540) - os.time() < 1 or getPlayerStorageValue(cid, 13540) - os.time() == 0 then doTeleportThing(cid, pos) doPlayerPopupFYI(cid, "Sua vip Account acabou.") setPlayerStorageValue(cid, 9898, -1) if string.find(tostring(getCreatureName(cid)),"[[Vip]]") then addEvent(Vodka, 3*1000, cid) end end return TRUE end AGORA TAG EM CRATURESCRIPT.XML <event type="login" name="checkvip1" script="vip.lua"/> e depois vai em craturescriot\script\login e add essa linha registerCreatureEvent(cid, "vip") q nem eu disse anteriormente vc muda o storage so onde ta "13540" vc muda pela sua...... Os script q apresentei acima naum sao meu é do vodka, +da +rep ae se ajudei ^^ 3° Bonus pra quem for vip +exp Vai na pasta creaturescripts>Script do seu servidor e crie um arquivo chamado vipexp agora add dentro function onLogin(cid) local rate = 1.3 -- 30% local config = { vip = "Você tem "..((rate - 1)*100).."% de exp a mais agora!", notvip = "Tornesse vip e ganhe "..((rate - 1)*100).."% a mais de experiencia!", } if vip.hasVip(cid) == FALSE then doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, config.notvip) else doPlayerSetExperienceRate(cid, rate) doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, config.vip) end return TRUE end Se você quiser pode mudar em vez de da 30% ele pode dar a % que vocês quiserem basta mudar essa linha como ao gosto de você local rate = 1.3 -- 30% Pronto feito isso agora vamos em creaturescripts>Scripts e abra o arquivo chamado Login e add isso registerCreatureEvent(cid, "ExpVip") Agora vamos em creaturescripts>abra o arquivo creaturescripts.xml como bloco de notas e add essa linha <event type="login" name="ExpVip" script="vipexp.lua"/> Ajudei dinovo? ME FODA NO++REP ESSE ULTIMO SCRIPT É MEU ^^
  11. http://www.xtibia.com/forum/topic/163989-pet-system/page__p__1079438__fromsearch__1#entry1079438 post do eduu ainda continua summonando +de 1 pet mais rlx resolvi, n vo deixa 1 script besta desse atrapalha no ot SKOSPOAKPOSKAPOKS +vlw cara
  12. Fis em Modoo talkactions pra fica mais facil blz, +mesmo assim presissa ter o item se fala !buypet dai compra function onSay(cid, words, param, itemEx) doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "Parabéns você comprou um Pet") setPlayerStorageValue(cid, 78552, 1) if doPlayerRemoveItem(cid, 3905, 1) then end end EM VERMELHO é o ID q sera removido coloque assim em talkactions.XML <talkaction words="!buypet" event="script" value="buypet.lua"/> Em VERDE o comando q ele ira usa pra compra o pet So naum colokei CODE pq naum iria aparecer a cor das letra ^^ +rep se ajudei presissa to ae Bom script edu +rep merece
  13. pow carinha n ajudo naum pq tipow, minha versao é 9.10, mais treta eu presisso q o player clica no ovo e sai o MAX de summon (1) eu tentei seu script e sai mil summon, pod me ajuda, valendo +rep
  14. Ola galera vo coloka um script ake mto bom, player fala !deposit VALOR ou !depositeall e deposita todo seu dinheiro, pra tira !withdraw VALOR Ou !whitdrawall ppra tira tudo versao testada 8.60,8.62 e 9.10 Vamos la vai em \data\talkactions\scripts e dentro de script cria outra pasta Bank ficando assim \data\talkactions\scripts\Bank Coloka os seguinte script la dentro 1°-- balance.lua function onSay(cid, words, param) local config = { bankSystemEnabled = getBooleanFromString(getConfigInfo('bankSystem')), playerIsFighting = hasCondition(cid, CONDITION_INFIGHT) } if config.bankSystemEnabled == TRUE then if config.playerIsFighting == FALSE then doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_ORANGE, "Your account balance is " .. getPlayerBalance(cid) .. ".") return TRUE else doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_ORANGE, "Bank can not be used in fight.") return TRUE end else return FALSE end end 2°--deposit.lua function onSay(cid, words, param) local config = { bankSystemEnabled = getBooleanFromString(getConfigInfo('bankSystem')), playerIsFighting = hasCondition(cid, CONDITION_INFIGHT) } if config.bankSystemEnabled == TRUE then if config.playerIsFighting == FALSE then if(param == "") then doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_ORANGE, "Command requires param.") return TRUE end local m = tonumber(param) if(not m) then doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_ORANGE, "Command requires numeric param.") return TRUE end m = math.abs(m) if m <= getPlayerMoney(cid) then doPlayerDepositMoney(cid, m) doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_ORANGE, "Alright, you have added the amount of " .. m .. " gold to your balance. You can withdraw your money anytime you want to. Your account balance is " .. getPlayerBalance(cid) .. ".") else doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_ORANGE, "You do not have enough money.") end return TRUE else doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_ORANGE, "Bank can not be used in fight.") return TRUE end else return FALSE end end 3°--deposit_all.lua function onSay(cid, words, param) local config = { bankSystemEnabled = getBooleanFromString(getConfigInfo('bankSystem')), playerIsFighting = hasCondition(cid, CONDITION_INFIGHT) } if config.bankSystemEnabled == TRUE then if config.playerIsFighting == FALSE then doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_ORANGE, "Alright, you have added the amount of " .. getPlayerMoney(cid) .. " gold to your balance. You can withdraw your money anytime you want to.") doPlayerDepositAllMoney(cid) return TRUE else doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_ORANGE, "Bank can not be used in fight.") return TRUE end else return FALSE end end 4°--transfer.lua function onSay(cid, words, param) local config = { bankSystemEnabled = getBooleanFromString(getConfigInfo('bankSystem')), playerIsFighting = hasCondition(cid, CONDITION_INFIGHT) } if config.bankSystemEnabled == TRUE then if config.playerIsFighting == TRUE then if(param == "") then doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_ORANGE, "Command requires param.") return TRUE end local t = string.explode(param, ",") local m = tonumber(t[2]) local tmp = string.explode(t[2], ",") if(not m) then doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_ORANGE, "No money specified.") return TRUE end m = math.abs(m) if m <= getPlayerBalance(cid) then if playerExists(t[1]) then doPlayerTransferMoneyTo(cid, t[1], m) doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_ORANGE, "You have transferred " .. m .. " gold to " .. t[1] .. ". Your account balance is " .. getPlayerBalance(cid) .. " gold.") else doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_ORANGE, "Player " .. t[1] .. " does not exist.") end else doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_ORANGE, "There is not enough gold on your account. Your account balance is " .. getPlayerBalance(cid) .. ". Please tell the amount of gold coins you would like to transfer.") end return TRUE else doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_ORANGE, "Bank can not be used in fight.") return TRUE end else return FALSE end end 5°--transfer_all.lua function onSay(cid, words, param) local config = { bankSystemEnabled = getBooleanFromString(getConfigInfo('bankSystem')), playerIsFighting = hasCondition(cid, CONDITION_INFIGHT) } if config.bankSystemEnabled == TRUE then if(param == "") then doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_ORANGE, "Command requires param.") return TRUE end local t = string.explode(param, ",") if playerExists(param) then doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_ORANGE, "You have transferred " .. getPlayerBalance(cid) .. " gold to " .. param .. ".") doPlayerTransferAllMoneyTo(cid, param) else doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_ORANGE, "Player " .. param .. " does not exist.") return TRUE end else return FALSE end end 6°--withdraw.lua function onSay(cid, words, param) local config = { bankSystemEnabled = getBooleanFromString(getConfigInfo('bankSystem')), playerIsFighting = hasCondition(cid, CONDITION_INFIGHT) } if config.bankSystemEnabled == TRUE then if config.playerIsFighting == FALSE then local m = tonumber(param) if(param == "") then doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_ORANGE, "Command requires param.") return TRUE end if(not m) then doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_ORANGE, "Command requires numeric param.") return TRUE end m = math.abs(m) if m <= getPlayerBalance(cid) then doPlayerWithdrawMoney(cid, m) doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_ORANGE, "Here you are, " .. m .. " gold. Your account balance is " .. getPlayerBalance(cid) .. ".") else doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_ORANGE, "There is not enough gold on your account.") end return TRUE else doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_ORANGE, "Bank can not be used in fight.") return TRUE end else return FALSE end end 7° e ultimo---withdraw_all.lua function onSay(cid, words, param) local config = { bankSystemEnabled = getBooleanFromString(getConfigInfo('bankSystem')), playerIsFighting = hasCondition(cid, CONDITION_INFIGHT) } if config.bankSystemEnabled == TRUE then if config.playerIsFighting == FALSE then doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_ORANGE, "Here you are, " .. getPlayerBalance(cid) .. " gold.") doPlayerWithdrawAllMoney(cid) return TRUE else doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_ORANGE, "Bank can not be used in fight.") return TRUE end else return FALSE end end Feito Tudo isso va em data\talkactions\talkactions.xml e coloque as seguintes linhas . <talkaction words="!balance" event="script" value="Bank/balance.lua" /> <talkaction words="!deposit" event="script" value="Bank/deposit.lua" /> <talkaction words="!withdraw" event="script" value="Bank/withdraw.lua" /> <talkaction words="!depositall" event="script" value="Bank/deposit_all.lua" /> <talkaction words="!withdrawall" event="script" value="Bank/withdraw_all.lua" /> SE PREFERIREM FAZE DOWNLOAD AKI ESTA [download]http://www.4shared.com/file/1VBeZD2r/Bank.html?[/download] Lenbrando que o script n é meu so tenho fais tempo n sei o nome do dono pode ser q ta na tag dentro dos script PESO DESCULPA PELO TOPICO DESORGANIZADO, N SO MTO DE FASE POSTAGEMS 40% (by: ???) 60% (by:eu por ter trasido ao xtibia) Se tiver algum outro post igual ou parecido me desculpe...Se gostaram +REP
  15. angeldoido

    Autouse

    acho q eskeci de agradeçe vlw apocari e edu
  16. modifica o script pra 9.10 ?--(te do 5+rep) Thanks
  17. me da +rep q te acho 1 completo xD
  18. angeldoido

    Pet Sistem

    Galera, eu tenho um script pra sumona 1 hydra se da 1 click no ovinho dele tipow, eu keria coloka max summon de 1 monster so, se eu fica dando USE no ovo mais hydra ira sai, keria por um limite eu tava tentando e ate agora fis isso (so q naum funciono) function onUse(cid, item, frompos, item2, topos) position = getPlayerPosition(cid) if getPlayerLevel(cid) >= 60 then --doSummonCreature('Hydra', position) doConvinceCreature(cid, doCreateMonster("Hydra", position, false)) doSendMagicEffect(getPlayerPosition(cid),16) doCreatureSay(cid,"Saia Hydra!!!", TALKTYPE_ORANGE_1) if (table.maxn(summons) < 1)then doPlayerSendCancel(cid,"Você precisa ser nivel 60 ou mais para invocar um hydra") else doPlayerSendCancel(cid, "Voce So pode Sumonar Um pet.") return TRUE end end return TRUE end Entaum galera o q posso fase agora... alguem pode me ajuda, o script original ta ake!!! abaixo function onUse(cid, item, frompos, item2, topos) position = getPlayerPosition(cid) if getPlayerLevel(cid) >= 60 then doConvinceCreature(cid, doCreateMonster("Hydra", position, false)) doSendMagicEffect(getPlayerPosition(cid),16) doCreatureSay(cid,"Saia Hydra!!!", TALKTYPE_ORANGE_1) doPlayerSendCancel(cid,"Você precisa ser nivel 60 ou mais para invocar um hydra") end return TRUE end
  19. pow manow mais pensa se deixa o !aloot add: item o cara vai em demon e rusha n presissa nem de bot tende kero deixa so fixo 2160 SEM PODE ADD '
  20. hey cara meu ot é estranho askpopsoak veio com map do tibia global e colokei o meu e quando coloko ID da cidade ex: 30022 Aparece q so morador de thais e naum o nome da minha cidade q no caso é storm bugado ?!?! onde mudo pra tira esse bug loco '=' ?
  21. mais dai n é so talk é creaturescript e e + trabalho n acha q so !juntar pra cada massete de 100 ja naum ta bom ?
  22. manow tipow bota pra ser comando fxo tira talk e deixa creaturescript so tira o comando !aloot add:2160 deixa como se ele auto pegasse o dinheiro sem presissa usa comando saca ? da um updating pra ultima versao tbm
  23. angeldoido

    Autouse

    SPOAKSPOKAPO naum eskeci ai tipow registrei tudo so q quando fico com 100 gp ele some '-'
  • Quem Está Navegando   0 membros estão online

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