Ir para conteúdo

Vodkart

Herói
  • Total de itens

    3406
  • Registro em

  • Última visita

  • Dias Ganhos

    113

Tudo que Vodkart postou

  1. precisando de alguma ajuda da um toque brother boa sorte abraços
  2. isso parece o sistema de trem do colex,só que nesse caso mudaram os id dos trilhos para o da agua,e tbm o id do carinho pro do barco...
  3. @UP fala cara,dá para até para fazer oque vc pede, mais depois que a vip acaba,ele ainda vai continuar com o[VIP] no nome dele,não tem como retirar depois... e se tem eu não sei fazer... ai vc quem sabe...
  4. cara dá até para fazer,só que não tem como ser pelo trade do npc só com conversas mesmo :X
  5. ah sim entendi então faz assim: function onSay(cid, words, param) local max = 5 -- quantidade maxima para falar palavrão function getCheck(cid) check = getPlayerStorageValue(cid,11420) if check < 0 then check = 0 end return check end if param == "fdp" or param == "viado" or param == "gay" or param == "vsf" or param == "vtnc" then if getCheck(cid) < max then setPlayerStorageValue(cid,11420,getCheck(cid)+1) doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "[Alerta] Você está falando alguns palavrões,tome cuidado poderá vir a ser banido pela sua falta de educação com o Administrador.") elseif getCheck(cid) >= max then local mensagens = {"O Jogador ".. getCreatureName(cid) .." acaba de ser banido por falar muitos palavrões para o Administrador!", "O Jogador ".. getCreatureName(cid) .." Foi banido por desrespeitar o Administrador do servidor."} -- Defina as mensagens de broadcast que ira aparecer ao ser banido o jogador doBroadcastMessage(mensagens[math.random(#mensagens)], 21) setPlayerStorageValue(cid,11420,-1) doAddAccountBanishment(getPlayerAccountId(cid), target, os.time() + 48 * 3600, 5, 2, 'Banido por Mal comportamento', 0) doRemoveCreature(cid) end end return TRUE end na tag é a mesma: <talkaction words="god" script="banimento.lua"/>
  6. harry luis zutun
  7. retirado
  8. acho que seria melhor se depois de falar "x" vezes alguns palavrões ele fosse banido, antes disso, seriam dado alguns avisos,e ele estaria ciente que não é permitido desrespeitar ninguem.
  9. -- Script SYtem vip 1.0 -- function onSay(cid, words, param) if(words == "!buyvip") then local price = 1000000 if doPlayerRemoveMoney(cid, 1000000) == TRUE then local days = 30 local daysvalue = days * 24 * 60 * 60 local storageplayer = getPlayerStorageValue(cid, 13540) local timenow = os.time() local name = getCreatureName(cid) if getPlayerStorageValue(cid, 13540) - os.time() <= 0 then time = timenow + daysvalue else time = storageplayer + daysvalue end doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, "Foram adicionados ".. days .." dias de VIP no seu character.") setPlayerStorageValue(cid, 13540, time) local quantity = math.floor((getPlayerStorageValue(cid, 13540) - timenow)/(24 * 60 * 60)) doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, "Você tem ".. quantity .." dias de VIP restantes.") db.executeQuery("UPDATE `players` SET `name` = '[Vip] "..name.."' WHERE `id` = "..getPlayerGUID(cid)..";") doRemoveCreature(cid) else doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, "Você precisa de "..price.." gp's para colocar vip.") end elseif(words == "!vipdays") then local timenow = os.time() local quantity = math.floor((getPlayerStorageValue(cid, 13540) - timenow)/(24 * 60 * 60)) doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, "Você tem ".. (quantity < 0 and 0 or quantity) .." dias de VIP no seu character.") elseif(words == "/addvip") then if getPlayerAccess(cid) == 5 then local t = string.explode(param, ",") if not t[2] then doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "Invalid param specified.") end local player = getPlayerByName(t[1]) local days = t[2] if not isPlayer(player) then doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "Player "..player.." not found.") end local daysvalue = days*3600*24 local storageplayer = getPlayerStorageValue(player, 13540) local timenow = os.time() local time = storageplayer <= 0 and (timenow + daysvalue) or (storageplayer + daysvalue) doPlayerSendTextMessage(player, MESSAGE_INFO_DESCR, "Foram adicionados "..days.." dias de VIP no seu character.") setPlayerStorageValue(player, 13540, time) local quantity = math.floor((getPlayerStorageValue(player,13540) - timenow)/(3600*24)) doPlayerSendTextMessage(player, MESSAGE_INFO_DESCR, "Você tem "..quantity.." dias de VIP restantes.") end elseif(words == "/delvip") then if getPlayerAccess(cid) == 5 then local dec = MESSAGE_INFO_DESCR if(param == "") then return TRUE,doPlayerSendTextMessage(cid,18,"Command param required.")end local C,t = {},string.explode(param, ",") C.pos = getPlayerPosition(cid) C.uid = getCreatureByName(t[1]) C.time = ((tonumber(t[2]) == nil) and 1 or tonumber(t[2]))*3600*24 --Tempo da vip por dia. C.days = (tonumber(t[2]) == nil) and 1 or tonumber(t[2]) --Dias de vip. if(getPlayerStorageValue(C.uid,13540) < C.time)then doPlayerSendTextMessage(cid,dec,'O jogador '..t[1]..' não possui '..C.days..' dias de vip.') else doPlayerSendTextMessage(cid,dec,'Você removeu '..C.days..' dias de vip do player '..t[1]..'.') setPlayerStorageValue(C.uid,13540,getPlayerStorageValue(C.uid,13540)-C.time) end doSendMagicEffect(C.pos, math.random(28,30)) end end return TRUE end
  10. Vodkart

    Jailed System

    function onSay(cid, words, param) local pos = {x=155, y=28, z=7} -- pos da prisao if getTilePzInfo(getCreaturePosition(cid)) == TRUE then doTeleportThing(cid,pos) doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_ORANGE, "Que Ridiculo Falando Palavrão,Sua mãe não ti deu educação não?.") else doCreatureAddHealth(cid,-50) doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_ORANGE, "-50 de life por falar palavrão.") end return TRUE end
  11. fala cara,dá para até para fazer oque vc pede, mais depois que a vip acaba,ele ainda vai continuar com o[VIP] no nome dele,não tem como retirar depois... e se tem eu não sei fazer. oque eu posso aconselhar a fazer é usar um Look para vip que qndo o player da look em um jogador vio aparece : [VIP ACCOUNT] mais vc que sabe.
  12. sem double topic amigo.
  13. falta ir em movements.xml e adicionar: <movevent type="Equip" itemid="1113" slot="feet" event="function" value="onEquipItem"/> <movevent type="DeEquip" itemid="1113" slot="feet" event="function" value="onDeEquipItem"/>
  14. não existe a função "doAddBanishment" em servidores mais recentes
  15. script muito útil ^^ parabens só tem um bug nele,é quando o jogador tem o dinheiro e não tem a bota. ou sejá o dinheiro é retirado,e vai dar uma mensagem dizendo que ele nao tem a bota. usa esse: --[[ script By gean Riot SUBWAT PARA XTIBIA!]]-- function onSay(cid, words, param) local config = { price = 10000, new_soft = 6132, -- id da nova bota que vai ser dada worn_soft = 10021, -- id da bota velha que vai ser retirada needPremium = true -- se precisa ser premium (true or false) } if (config.needPremium == true) and (not isPremium(cid)) then doPlayerSendTextMessage(cid, 23, "desculpe apenas Premium players podem recarregar soft.") return TRUE end if getPlayerItemCount(cid, config.worn_soft) >= 1 then if doPlayerRemoveMoney(cid,config.price) == TRUE then doPlayerRemoveItem(cid,config.worn_soft,1) doPlayerAddItem(cid,config.new_soft, 1) doSendMagicEffect(getPlayerPosition(cid), math.random(28,30)) doCreatureSay(cid, "Soft boots Repared", TALKTYPE_ORANGE_1) else doPlayerSendCancel(cid, 'Você precisa de ' .. config.price ..' gps para trocar.') end else doPlayerSendCancel(cid, 'você não tem uma ' .. getItemNameById(config.worn_soft) .. ' para trocar por uma nova.') end return TRUE end
  16. posta o script do seu tile premmy ai
  17. function onUse(cid, item, frompos, itemEx, topos) pokemons = { [10001] = {"Bulbasaur", 4415, 4416, 10001}, [10002] = {"Ivysaur", 4417, 4418, 10002}, [10003] = {"Venusaur", 4419, 4420, 10003}, [10004] = {"Charmander", 4421, 4422, 10004}, [10005] = {"Charmeleon", 4423, 4424, 10005}, [10006] = {"Charizard", 4425, 4426, 10006}, [10007] = {"Squirtle", 4427, 4428, 10007}, [10008] = {"Wartortle", 4429, 4430, 10008}, [10009] = {"Blastoise", 4431, 4432, 10009}, [10010] = {"Caterpie", 4433, 4434, 10010}, [10011] = {"Metapod", 4435, 4436, 10011}, [10012] = {"Butterfree", 4437, 4438, 10012}, [10013] = {"Weedle", 4439, 4440, 10013}, [10014] = {"Kakuna", 4441, 4442, 10014}, [10015] = {"Beedrill", 4443, 4444, 10015}, [10016] = {"Pidgey", 4445, 4446, 10016}, [10017] = {"Pidgeotto", 4447, 4448, 10017}, [10018] = {"Pidgeot", 4449, 4450, 10018}, [10019] = {"Rattata", 4451, 4452, 10019}, [10020] = {"Raticate", 4453, 4454, 10020}, [10021] = {"Spearow", 4455, 4456, 10021}, [10022] = {"Fearow", 4457, 4458, 10022}, [10023] = {"Ekans", 4459, 4460, 10023}, [10024] = {"Arbok", 4461, 4462, 10024}, [10025] = {"Pikachu", 4463, 4464, 10025}, [10026] = {"Raichu", 4465, 4466, 10026}, [10027] = {"Sandshrew", 4467, 4468, 10027}, [10028] = {"Sandslash", 4469, 4470, 10028}, [10029] = {"NidoranFE", 4471, 4472, 10029}, [10030] = {"Nidorina", 4473, 4474, 10030}, [10031] = {"Nidoqueen", 4475, 4476, 10031}, [10032] = {"NidoranMA", 4477, 4478, 10032}, [10033] = {"Nidorino", 4479, 4480, 10033}, [10034] = {"Nidoking", 4481, 4482, 10034}, [10035] = {"Clefairy", 4483, 4484, 10035}, [10036] = {"Clefable", 4485, 4486, 10036}, [10037] = {"Vulpix", 4487, 4488, 10037}, [10038] = {"Ninetales", 4489, 4490, 10038}, [10039] = {"Jigglypuff", 4491, 4492, 10039}, [10040] = {"Wigglytuff", 4493, 4494, 10040}, [10041] = {"Zubat", 4495, 4496, 10041}, [10042] = {"Golbat", 4497, 4498, 10042}, [10043] = {"Oddish", 4499, 4500, 10043}, [10044] = {"Gloom", 4501, 4502, 10044}, [10045] = {"Vileplume", 4503, 4504, 10045}, [10046] = {"Paras", 4505, 4506, 10046}, [10047] = {"Parasect", 4507, 4508, 10047}, [10048] = {"Venonat", 4509, 4510, 10048}, [10049] = {"Venomoth", 4511, 4512, 10049}, [10050] = {"Diglett", 4513, 4514, 10050}, [10051] = {"Dugtrio", 4515, 4516, 10051}, [10052] = {"Meowth", 4517, 4518, 10052}, [10053] = {"Persian", 4519, 4520, 10053}, [10054] = {"Psyduck", 4521, 4522, 10054}, [10055] = {"Golduck", 4523, 4524, 10055}, [10056] = {"Mankey", 4525, 4526, 10056}, [10057] = {"Primeape", 4527, 4528, 10057}, [10058] = {"Growlithe", 4529, 4530, 10058}, [10059] = {"Arcanine", 4531, 4532, 10059}, [10060] = {"Poliwag", 4533, 4534, 10060}, [10061] = {"Poliwhirl", 4535, 4536, 10061}, [10062] = {"Poliwrath", 4537, 4538, 10062}, [10063] = {"Abra", 4539, 4540, 10063}, [10064] = {"Kadabra", 4541, 4542, 10064}, [10065] = {"Alakazam", 4543, 4544, 10065}, [10066] = {"Machop", 4545, 4546, 10066}, [10067] = {"Machoke", 4547, 4548, 10067}, [10068] = {"Machamp", 4549, 4550, 10068}, [10069] = {"Bellsprout", 4551, 4552, 10069}, [10070] = {"Weepinbell", 4553, 4554, 10070}, [10071] = {"Victreebel", 4555, 4556, 10071}, [10072] = {"Tentacool", 4557, 4558, 10072}, [10073] = {"Tentacruel", 4559, 4560, 10073}, [10074] = {"Geodude", 4561, 4562, 10074}, [10075] = {"Graveler", 4563, 4564, 10075}, [10076] = {"Golem", 4565, 4566, 10076}, [10077] = {"Ponyta", 4567, 4568, 10077}, [10078] = {"Rapidash", 4569, 4570, 10078}, [10079] = {"Slowpoke", 4571, 4572, 10079}, [10080] = {"Slowbro", 4573, 4574, 10080}, [10081] = {"Magnemite", 4575, 4576, 10081}, [10082] = {"Magneton", 4577, 4578, 10082}, [10083] = {"Farfetch'D", 4579, 4580, 10083}, [10084] = {"Doduo", 4581, 4582, 10084}, [10085] = {"Dodrio", 4583, 4584, 10085}, [10086] = {"Seel", 4585, 4586, 10086}, [10087] = {"Dewgong", 4587, 4588, 10087}, [10088] = {"Grimer", 4589, 4590, 10088}, [10089] = {"Muk", 4591, 4592, 10089}, [10090] = {"Shellder", 4593, 4594, 10090}, [10091] = {"Cloyster", 4595, 4596, 10091}, [10092] = {"Gastly", 4597, 4598, 10092}, [10093] = {"Haunter", 4599, 4600, 10093}, [10094] = {"Gengar", 4601, 4602, 10094}, [10095] = {"Onix", 4603, 4604, 10095}, [10096] = {"Drowzee", 4605, 4606, 10096}, [10097] = {"Hypno", 4607, 4608, 10097}, [10098] = {"Krabby", 4609, 4610, 10098}, [10099] = {"Kingler", 4611, 4612, 10099}, [10100] = {"Voltorb", 4613, 4614, 10100}, [10101] = {"Electrode", 4615, 4616, 10101}, [10102] = {"Exeggcute", 4617, 4618, 10102}, [10103] = {"Exeggutor", 4619, 4620, 10103}, [10104] = {"Cubone", 4621, 4622, 10104}, [10105] = {"Marowak", 4623, 4624, 10105}, [10106] = {"Hitmonlee", 4625, 4626, 10106}, [10107] = {"Hitmonchan", 4627, 4628, 10107}, [10108] = {"Lickitung", 4629, 4630, 10108}, [10109] = {"Koffing", 4631, 4632, 10109}, [10110] = {"Weezing", 4633, 4634, 10110}, [10111] = {"Rhyhorn", 4635, 4636, 10111}, [10112] = {"Rhydon", 4637, 4638, 10112}, [10113] = {"Chansey", 4639, 4640, 10113}, [10114] = {"Tangela", 4641, 4642, 10114}, [10115] = {"Kangaskhan", 4643, 4644, 10115}, [10116] = {"Horsea", 4645, 4646, 10116}, [10117] = {"Seadra", 4647, 4648, 10117}, [10118] = {"Goldeen", 4649, 4650, 10118}, [10119] = {"Seaking", 4651, 4652, 10119}, [10120] = {"Staryu", 4653, 4654, 10120}, [10121] = {"Starmie", 4655, 4656, 10121}, [10122] = {"Mr.Mime", 4657, 4658, 10122}, [10123] = {"Scyther", 4659, 4660, 10123}, [10124] = {"Jynx", 4661, 4662, 10124}, [10125] = {"Electabuzz", 4663, 4664, 10125}, [10126] = {"Magmar", 4665, 4666, 10126}, [10127] = {"Pinsir", 4667, 4668, 10127}, [10128] = {"Tauros", 4669, 4670, 10128}, [10129] = {"Magikarp", 4671, 4672, 10129}, [10130] = {"Gyarados", 4674, 4674, 10130}, [10131] = {"Lapras", 4675, 4676, 10131}, [10132] = {"Ditto", 4677, 4678, 10132}, [10133] = {"Eevee", 4689, 4680, 10133}, [10134] = {"Vaporeon", 4681, 4682, 10134}, [10135] = {"Jolteon", 4683, 4684, 10135}, [10136] = {"Flareon", 4685, 4686, 10136}, [10137] = {"Porygon", 4687, 4688, 10137}, [10138] = {"Omanyte", 4689, 4690, 10138}, [10139] = {"Omastar", 4691, 4692, 10139}, [10140] = {"Kabuto", 4693, 4694, 10140}, [10141] = {"Kabutops", 4695, 4696, 10141}, [10142] = {"Aerodactyl", 4697, 4698, 10142}, [10143] = {"Snorlax", 4699, 4700, 10143}, [10144] = {"Articuno", 4701, 4702, 10144}, [10145] = {"Zapdos", 4703, 4704, 10145}, [10146] = {"Moltres", 4705, 4706, 10146}, [10147] = {"Dratini", 4707, 4708, 10147}, [10148] = {"Dragonair", 4709, 4710, 10148}, [10149] = {"Dragonite", 4711, 4712, 10149}, [10150] = {"Mewtwo", 4713, 4714, 10150}, [10151] = {"Mew", 4715, 4716, 10151} } local poke = pokemons[itemEx.actionid] if #getCreatureSummons(cid) ~= 0 then doPlayerSendCancel(cid,"Sorry, call your pokemon.") return TRUE end if poke and getPlayerSlotItem(cid, CONST_SLOT_FEET) and getPlayerStorageValue(cid, poke[2]) >= 1 then doTransformItem(item.uid,2377) doCreatureSay(cid, "Back, ".. poke[1] .."", TALKTYPE_SAY) doRemoveCreature(getCreatureSummons(cid)[1]) doSendMagicEffect(topos, 36) end return TRUE end
  18. usa esse http://www.xtibia.com/forum/topic/133661-moveevent-action-perfect-vip-system-16/
  19. tenta procurar algum arquivo que tenha o nome com "vip" em actions/talkactions/movements/creaturescript
  20. if doPlayerRemoveItem(cid, 7528, 1) == TRUE then
  21. velho aqui abriu o spoiler,acho que se você remover seus cookies e caches o spoiler vai abrir. mais vou postar aqui para você:
  22. wow testado e aprovado esse realmente funciona parabens mkalo magnifico script! rep +
  23. local keywordHandler = KeywordHandler:new() local npcHandler = NpcHandler:new(keywordHandler) NpcSystem.parseParameters(npcHandler) local talkState = {} 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 local talkUser = NPCHANDLER_CONVbehavior == CONVERSATION_DEFAULT and 0 or cid local a = { [5] = {new_voc = 9,need_level = true,level = 60,cobrar = true,price = 100000,need_premium = true}, [6] = {new_voc = 10,need_level = true,level = 60,cobrar = true,price = 100000,need_premium = true}, [7] = {new_voc = 11,need_level = true,level = 60,cobrar = true,price = 100000,need_premium = true}, [8] = {new_voc = 12,need_level = true,level = 60,cobrar = true,price = 100000,need_premium = true} } local b = a[getPlayerVocation(cid)] if(msgcontains(msg, 'vip promotion') or msgcontains(msg, 'vip promote')) then if(not b) then selfSay('Você não tem a second promote, então não poderá ser promovido!.', cid) talkState[talkUser] = 0 else selfSay('Deseja virar ' .. getVocationInfo(b.new_voc).name .. ' por '..b.price..' gold coins? {yes}', cid) talkState[talkUser] = 1 end elseif(msgcontains(msg, 'yes') and talkState[talkUser] == 1) then if b.need_premium == true and not isPremium(cid) then selfSay('Você precisa ser Premium para ser promovido!.', cid) talkState[talkUser] = 0 elseif b.need_level == true and getPlayerLevel(cid) < b.level then selfSay('Você deve ter pelo menos level '.. b.level ..' para ser promovido!.', cid) talkState[talkUser] = 0 elseif b.cobrar == true and doPlayerRemoveMoney(cid, b.price) == TRUE then doPlayerSetVocation(cid,b.new_voc) selfSay('Você foi promovido com sucesso.', cid) talkState[talkUser] = 0 else selfSay('Você não tem '..b.price..' gold coins Suficientes.', cid) doSendMagicEffect(getPlayerPosition(cid), 2) end end return TRUE end npcHandler:setCallback(CALLBACK_MESSAGE_DEFAULT, creatureSayCallback) npcHandler:addModule(FocusModule:new())
  24. só se aprende errando,esse é o fato. tenta você mesmo cria alguns scripts simples depois que ler alguma coisinhas por inquanto,como uma actions de chest,ou até mesmo alguma talkactions em que o jogador ganha vida,coisas simples mesmo... no que você tiver dúvido a gente vai auxiliando. abraços
  • Quem Está Navegando   0 membros estão online

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