-
Total de itens
988 -
Registro em
-
Última visita
-
Dias Ganhos
22
Tudo que DuuhCarvalho postou
-
bondade Nescau ou Toddynho ?
-
imaginei.. sua vip é por storage? se sim manda. ou premium?
-
editei o script, testa ae..
-
não vi ainda 'rsr.. parece que mudou mt coisa @Tulio271, testa isso aqui: function onSay(player, words, param) --[[ Config lugares]]-- local lugar = { ["demolay"] = {pos = {x=1229, y=990, z=7}}, ["fidelitas"] = {pos = {x=1023, y=1026, z=7}}, ["shopping"] = {pos = {x=1044, y=1052, z=7}}, ["tpfree"] = {pos = {x=1108, y=998, z=7}}, ["tpfree2"] = {pos = {x=1248, y=1070, z=7}}, ["tpvip2"] = {pos = {x=1249, y=1064, z=7}}, ["tpvip"] = {pos = {x=1108, y=1028, z=7}}, } if player:getCondition(CONDITION_INFIGHT) == true then player:sendTextMessage(MESSAGE_EVENT_DEFAULT, "Você não pode se teleportar em uma batalha.") return false end if player:isVip() == false then player:sendTextMessage(MESSAGE_EVENT_DEFAULT, "Apenas Vip's podem se teleportar.") return false end local a = lugar[tostring(param)] local tmp = player:getPosition() if not a then player:sendTextMessage(MESSAGE_STATUS_CONSOLE_BLUE, "As cidades que você pode ir são: demolay, fidelitas.") player:sendTextMessage(MESSAGE_STATUS_CONSOLE_BLUE, "Os lugares que você pode ir são: shopping, tpfree, tpfree2, tpvip, tpvip2.") tmp:sendMagicEffect(CONST_ME_POFF) else tmp:sendMagicEffect(CONST_ME_TELEPORT) player:teleportTo(a.pos) player:getPosition():sendMagicEffect(CONST_ME_TELEPORT) end return false end
-
o script está correto, e não da nenhum erro, para ser sincero não sei qual o problema :s
-
editei. Não tem nada errado no seu script, nem nesse que eu criei agora. se não funcionar, manda sua tag aqui, e confirma as posições..
-
EDITADO : function onSay(cid, words, param, param2, channel)if(param == '') thendoPlayerSendCancel(cid, "Command param required.")return trueendlocal config = {battle = true, -- players deve estar sem battle (true or false)vip = false -- se precisa ser premium account (true or false)}--[[ Config lugares]]--local lugar = {["demolay"] = {pos = {x=1229, y=990, z=7}},["fidelitas"] = {pos = {x=1023, y=1026, z=7}},["shopping"] = {pos = {x=1044, y=1052, z=7}},["tpfree"] = {pos = {x=1108, y=998, z=7}},["tpfree2"] = {pos = {x=1248, y=1070, z=7}},["tpvip2"] = {pos = {x=1249, y=1064, z=7}},["tpvip"] = {pos = {x=1108, y=1028, z=7}},}if config.vip == true and not isVip(cid) then return doPlayerSendTextMessage(cid, MESSAGE_EVENT_DEFAULT, "Apenas contas vip tem esse recurso.")endif config.battle == true and getCreatureCondition(cid, CONDITION_INFIGHT) == true then return doPlayerSendTextMessage(cid, MESSAGE_EVENT_DEFAULT, "Você não pode se teleportar em uma batalha.")endlocal a = lugar[param]if not a then doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "As cidades que você pode ir são: demolay, fidelitas") doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "Os lugares que você pode ir são: shopping, tpfree, tpfree2, tpvip, tpvip2") doSendMagicEffect(getCreaturePosition(cid), CONST_ME_POFF)else doSendMagicEffect(getPlayerPosition(cid),27) doTeleportThing(cid, a.pos) doSendMagicEffect(getPlayerPosition(cid),40)endreturn trueend
-
suporte otserv [PEDIDO] Item aleatorio
pergunta respondeu ao wougoplex de DuuhCarvalho em Resolvidos
como assim ? do nada vai aparecer um item na posição x ? -
Dá erro na distro ? qual o erro?
-
suporte scripts Ajuda com esse script.
pergunta respondeu ao gabriel28 de DuuhCarvalho em Resolvidos
exatamente o que pensei kk, estava fazendo aqui.. mas se já tiver feito ótimo o único problema com a storage é que se o player upar e aumentar a hp quando voltar o hp para o valor da storage, o player vai ficar com o hp menor do q deveria -
suporte scripts Ajuda com esse script.
pergunta respondeu ao gabriel28 de DuuhCarvalho em Resolvidos
primeiro substitui o script, depois vai em creaturescripts/scripts/login.lua e antes do ultimo return true coloca isso: local storage22 = 80888local health = getCreatureMaxHealth(cid)*0.10if getPlayerStorageValue(cid, storage22) >= 1 then setPlayerStorageValue(cid, storage22, 0) setCreatureMaxHealth(cid, getCreatureMaxHealth(cid) - health) doRemoveCreature(cid)end -
suporte otserv (resolvido) [PEDIDO] Bau
pergunta respondeu ao wougoplex de DuuhCarvalho em Resolvidos
faz uma animação onde ? explica mais detalhado -
suporte scripts (resolvido) Alguém edita essa script para min ?
pergunta respondeu ao Wase Wiss de DuuhCarvalho em Resolvidos
usa o script do zypter e coloca as posições no script mano -
suporte scripts (resolvido) logar e ganhar 2 dias de vips
pergunta respondeu ao marcelinhok de DuuhCarvalho em Resolvidos
@marcelinhok tenta agora: local config = { loginMessage = getConfigValue('loginMessage') } function onLogin(cid) local loss = getConfigValue('deathLostPercent') if(loss ~= nil) then doPlayerSetLossPercent(cid, PLAYERLOSS_EXPERIENCE, loss * 10) end local accountManager = getPlayerAccountManager(cid) if(accountManager == MANAGER_NONE) then local lastLogin, str = getPlayerLastLoginSaved(cid), config.loginMessage if(lastLogin > 0) then doPlayerSendTextMessage(cid, MESSAGE_STATUS_DEFAULT, str) str = "Your last visit was on " .. os.date("%a %b %d %X %Y", lastLogin) .. "." else str = str .. " Please choose your outfit." doPlayerSendOutfitWindow(cid) end doPlayerSendTextMessage(cid, MESSAGE_STATUS_DEFAULT, str) elseif(accountManager == MANAGER_NAMELOCK) then doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_ORANGE, "Hello, it appears that your character has been namelocked, what would you like as your new name?") elseif(accountManager == MANAGER_ACCOUNT) then doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_ORANGE, "Hello, type 'account' to manage your account and if you want to start over then type 'cancel'.") else doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_ORANGE, "Hello, type 'account' to create an account or type 'recover' to recover an account.") end if(not isPlayerGhost(cid)) then doSendMagicEffect(getCreaturePosition(cid), CONST_ME_TELEPORT) end registerCreatureEvent(cid, "Mail") registerCreatureEvent(cid, "GuildMotd") registerCreatureEvent(cid, "killer") registerCreatureEvent(cid, "attackguild") registerCreatureEvent(cid, "prevetloss") registerCreatureEvent(cid, "tkexp4") registerCreatureEvent(cid, "tkexp3") registerCreatureEvent(cid, "advance") registerCreatureEvent(cid, "AdvEffect") registerCreatureEvent(cid, "Idle") registerCreatureEvent(cid, "Antimagebomb") registerCreatureEvent(cid, "checkmcmanager") registerCreatureEvent(cid, "effect") registerCreatureEvent(cid, "onPrepareDeath") registerCreatureEvent(cid, "DeathSystem") registerCreatureEvent(cid, "LevelItem") registerCreatureEvent(cid, "anunciarmorte") registerCreatureEvent(cid, "CombatDodge") registerCreatureEvent(cid, "onPrepareDeath") registerCreatureEvent(cid, "showKD") registerCreatureEvent(cid, "pvpsystem") registerCreatureEvent(cid, "SkullCheck") registerCreatureEvent(cid, "ReportBug") registerCreatureEvent(cid, VipReceive) registerCreatureEvent(cid, "PlayerKill") if (InitArenaScript ~= 0) then InitArenaScript = 1 -- make arena rooms free for i = 42300, 42309 do setGlobalStorageValue(i, 0) setGlobalStorageValue(i+100, 0) end end -- if he did not make full arena 1 he must start from zero if getPlayerStorageValue(cid, 42309) < 1 then for i = 42300, 42309 do setPlayerStorageValue(cid, i, 0) end end -- if he did not make full arena 2 he must start from zero if getPlayerStorageValue(cid, 42319) < 1 then for i = 42310, 42319 do setPlayerStorageValue(cid, i, 0) end end -- if he did not make full arena 3 he must start from zero if getPlayerStorageValue(cid, 42329) < 1 then for i = 42320, 42329 do setPlayerStorageValue(cid, i, 0) end end if getPlayerStorageValue(cid, 42355) == -1 then setPlayerStorageValue(cid, 42355, 0) -- did not arena level end setPlayerStorageValue(cid, 42350, 0) -- time to kick 0 setPlayerStorageValue(cid, 42352, 0) -- is not in arena if getPlayerStorageValue(cid, 67792) == 1 then doPlayerPopupFYI(cid, "Seja Bem vindo ao Baiak Zuado\n\nJa Estamos em Clima de NATAL HOHOHOOU.\n\nAqui vou postar algumas dicas para você iniciante.\n1- Se for sua primeira vez em nosso server você acaba de adquirir 2 dias de Super Vip.\n2- Faça a quest Donate Coins e Seja TOP.\n\nLista de principais comandos do server. !aol !bless !stamina !notice !info !reset !superdias !go !bp !doar !evento\n\nAptoveite os Eventos de NATAL.\n\nBom Jogo a Todos!") doPlayerSetStorageValue(cid, 67792, 1) end local storage3 = (getPlayerAccountId(cid)+550) local diasv = 2 if getGlobalStorageValue(storage3) <= 0 then setGlobalStorageValue(storage3, 1) setPlayerStorageValue(cid, 13715, os.time() + diasv*24*60*60) doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_ORANGE, "Você recebeu "..diasv.." dias de SUPER VIP, bom jogo!") end return true end- 9 respostas
-
- creaturescri
- mods
-
(e 2 mais)
Tags:
-
suporte scripts (resolvido) Alguém edita essa script para min ?
pergunta respondeu ao Wase Wiss de DuuhCarvalho em Resolvidos
verdade, certa vez o Omega tinha me falado isso, mas faz muito tempo então esqueci.. se bem que não é uma boa opção já que no mapa pode ter outras areas no-pvp, e não só nos treiners -
suporte scripts (resolvido) Alguém edita essa script para min ?
pergunta respondeu ao Wase Wiss de DuuhCarvalho em Resolvidos
faz o teste ae pf.. depois de function onSay coloca isso: if getTileInfo(getThingPos(cid)).nopvp == FALSE then return doPlayerSendCancel(cid, "Voce nao pode usar esse comando aqui.")end -
suporte scripts (resolvido) Alguém edita essa script para min ?
pergunta respondeu ao Wase Wiss de DuuhCarvalho em Resolvidos
@zipter98 não da pra usar tipo: if getTileInfo(getThingPos(cid)).nopvp then ... end ficaria mais fácil, porém em area qualquer area nopvp ele conseguiria usar 'rs -
suporte scripts (resolvido) Alguém edita essa script para min ?
pergunta respondeu ao Wase Wiss de DuuhCarvalho em Resolvidos
certo, mas a primeira questão foi resolvida ? !treinar on e !treinar off ? agora só fala !treiner e pronto? sobre essa outra questão, no rme os treiner's estão em no-pvp zone ? onde o player fica parado é no-pvp zone? -
suporte scripts (resolvido) Alguém edita essa script para min ?
pergunta respondeu ao Wase Wiss de DuuhCarvalho em Resolvidos
funcionou a questão do player falar a !trainar? manda as posições... -
suporte scripts (resolvido) logar e ganhar 2 dias de vips
pergunta respondeu ao marcelinhok de DuuhCarvalho em Resolvidos
não faz sentido, você testou com um player em outra account? se o player que você testou estiver na mesma account que o adm, n vai ganhar msm, pq o adm já ganhou. o script da a vip por account. se mesmo assim n funcionou. manda o seu login.lua- 9 respostas
-
- creaturescri
- mods
-
(e 2 mais)
Tags:
-
suporte scripts (resolvido) logar e ganhar 2 dias de vips
pergunta respondeu ao marcelinhok de DuuhCarvalho em Resolvidos
@marcelinhok faz o seguinte, vai em data/creaturescripts/scripts abre o arquivo login.lua e antes do ultimo return true cola essa parte: local storage3 = (getPlayerAccountId(cid)+550) local diasv = 2 if getGlobalStorageValue(storage3) <= 0 then setGlobalStorageValue(storage3, 1) setPlayerStorageValue(cid, 13715, os.time() + diasv*24*60*60) doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "Você recebeu "..diasv.." dias de VIP, bom jogo!") end- 9 respostas
-
- creaturescri
- mods
-
(e 2 mais)
Tags:
-
suporte otserv Erro Tele.lua e Starter.lua
pergunta respondeu ao Prometheus X de DuuhCarvalho em Resolvidos
@Prometheus X você vai colocar uma tag para cada pokemon: [4230] = "Bulbasaur", [4231] = "Charmander", [4232] = "Squirtle", [4233] = "Pikachu", [4234] = "Gloom", [4234] = "Shiny oddish", [4235] = "Treecko", [4236] = "Chimchar", [4237] = "Piplup", <action actionid="4230" script="start.lua"/> <action actionid="4231" script="start.lua"/> <action actionid="4232" script="start.lua"/> <action actionid="4233" script="start.lua"/> <action actionid="4234" script="start.lua"/> <action actionid="4235" script="start.lua"/> <action actionid="4236" script="start.lua"/> <action actionid="4237" script="start.lua"/> e um baú para cada pokemon, ou seja, cada bau vai uma action -
suporte otserv Erro Tele.lua e Starter.lua
pergunta respondeu ao Prometheus X de DuuhCarvalho em Resolvidos
@Prometheus X exemplo, no script tem: [4230] = "Bulbasaur", você tem que colocar a tag com actionid 4230, e no rme colocar essa mesma action no bau. quando o player dê use nesse baú ele vai ganhar esse pokemon! tag: <action actionid="4230" script="NomeDoarquivo.lua"/> [4231] = "Charmander", em outro bau coloca a actionid 4231... -
suporte otserv Erro Tele.lua e Starter.lua
pergunta respondeu ao Prometheus X de DuuhCarvalho em Resolvidos
ta errado, vc tem que colocar a tag com actionid, e no rme colocar o bau com o mesmo actionid.. -
action Porta Quer Precisar De Item Para Passar
tópico respondeu ao luizmachado1 de DuuhCarvalho em Actions e Talkactions
Legal mano, continue treinando, realizando scripts.... quer uma dica?! em: doTeleportThing(cid, pos) coloca: doTeleportThing(cid, fromPosition) e exclui: local pos = {x = 1107, y = 1017, z = 7 o player vai retornar para posição onde estava..
-
Quem Está Navegando 0 membros estão online
- Nenhum usuário registrado visualizando esta página.