Postado Abril 19, 2015 10 anos ALO COM QUEM EU FALO? Galera do TK meu server tem o Cam System mas quando vai criar um novo canal (clica na camera) abre isso: e depois isso: alguem pode me ajudar a trocar essa ordem? pf Arquivo encontrado em: Server\data\actions\scripts\camera.lua Mostrar conteúdo oculto function onUse(cid, item, frompos, item2, topos) if getPlayerStorageValue(cid, 99284) == 2 then doPlayerSendCancel(cid, "Feche o seu private chat antes de criar um canal de TV.") return true end if getPlayerStorageValue(cid, 99284) == 1 then doPlayerSendCancel(cid, "Você já esta no ar!, atualmente no canal "..getPlayerStorageValue(cid, 99285).."") doPlayerSendChannel(cid, getPlayerChannelId(cid), getPlayerStorageValue(cid, 99285)) return true end doPlayerPopupFYI(cid, "Escolha um nome para o seu canal.") end Arquivo encontrado em: Server\data\lib Mostrar conteúdo oculto function doPlayerWatchOther(cid, target) if not isCreature(cid) then return true end local hasOutfitCond = getCreatureCondition(cid, CONDITION_OUTFIT) and getCreatureOutfit(cid).lookType or -1 setPlayerStorageValue(cid, 99282, getCreatureSpeed(cid)) setPlayerStorageValue(cid, 99283, hasOutfitCond) setPlayerStorageValue(cid, 99285, target) doCreatureSetNick(cid, "") --, " ") local o = getCreatureOutfit(cid) local olddir = getCreatureLookDir(cid) local oldpos = getThingPos(cid) doCreatureSetHideHealth(cid, true) doPlayerLock(cid) local dir = "data/npc/TVNPC.xml" local a = io.open(dir, "a+") local b = a:read("*all") a:close() local npcname = 'name="'..getCreatureName(cid)..' "' local npchealth = 'health now="'..getCreatureHealth(cid)..'" max="'..getCreatureMaxHealth(cid)..'"' local npcoutfit = 'look type="'..o.lookType..'" head="'..o.lookHead..'" body="'..o.lookBody..'" legs="'..o.lookLegs..'" feet="'..o.lookFeet..'"' b = string.gsub(b, 'name="(.-)"', npcname) b = string.gsub(b, 'health now="(.-)" max="(.-)"', npchealth) b = string.gsub(b, 'look type="(.-)" head="(.-)" body="(.-)" legs="(.-)" feet="(.-)"', npcoutfit) local c = io.open(dir, "w") c:write(b) c:close() o.lookType = 814 doCreatureSetOutfit(cid, o, -1) doTeleportThing(cid, getThingPos(target), false) local n = doCreateNpc("TVNPC", oldpos) doCreatureSetLookDir(n, olddir) setPlayerStorageValue(n, 9891, getPlayerSex(cid)) setPlayerStorageValue(n, 697548, getPlayerDesc(n, cid, true)) --alterado v2.7 doPlayerSetVocation(cid, 1) doChangeSpeed(cid, -getCreatureSpeed(cid)) doChangeSpeed(cid, getCreatureSpeed(target)) end function doPlayerStopWatching(cid) if not isCreature(cid) then return true end doPlayerUnlock(cid) doCreatureSetNick(cid, "") --, getCreatureName(cid)) local pos = {} local speed = getPlayerStorageValue(cid, 99282) local npc = getCreatureByName(getCreatureName(cid).." ") local olddir = 0 if isCreature(npc) then olddir = getCreatureLookDir(npc) local pos = getThingPos(npc) doRemoveCreature(npc) doTeleportThing(cid, pos, false) end doChangeSpeed(cid, -getCreatureSpeed(cid)) doChangeSpeed(cid, speed) doCreatureSetHideHealth(cid, false) doCreatureSetLookDir(cid, olddir) doCreatureSetNick(cid, getCreatureName(cid)) setPlayerStorageValue(cid, 99285, -1) local outfit = getPlayerStorageValue(cid, 99283) if outfit >= 1 then local newOutfit = getCreatureOutfit(cid) newOutfit.lookType = outfit doCreatureSetOutfit(cid, newOutfit, -1) else doCreatureRemoveCondition(cid, CONDITION_OUTFIT) end end function getWatchingPlayersFromPos(cid, pos) local ret = {} local cp = {} cp.x = pos.x cp.y = pos.y cp.z = pos.z for a = 0, 255 do cp.stackpos = a local b = getTileThingByPos(cp).uid if isCreature(b) and getCreatureOutfit(b).lookType == 814 and getPlayerStorageValue(b, 99285) == cid then table.insert(ret, b) end end return ret end REP+ E VLW :3 Editado Abril 19, 2015 10 anos por TsplayerT (veja o histórico de edições) Meus Contatos! Minhas Funções: Mostrar conteúdo oculto Skype: TsplayerT Facebook: TakaFukushii YouTube: ADoseDupla Twitter: @_Splayer_ Mapper:▓▓▓▓▓▓▓▓▓▓ 97% Programmer:▓▓▓▓▓▒▒▒▒▒ 45% Scripter:▓▓▓▓▓▓▓▓▓▒ 83% Spriter:▓▓▓▓▓▓▒▒▒▒ 57% Gamemaster:▓▓▓▓▓▓▓▓▓▓ 99% Ot Creator:▓▓▓▓▓▓▓▒▒▒71% Ot Client Maker:▓▓▓▓▓▓▓▒▒▒74%
Postado Abril 19, 2015 10 anos geralmente nos poketibia abre a cam msmo vc clickando no ok, ai nao ta abrindu nao? Minhas Gambiarras Mostrar conteúdo oculto [PDA] Pokedex Mostrando o Catch http://www.tibiaking.com/forum/topic/54998-pda-arrumando-a-dex/?view=findpost&p=323041
Postado Abril 19, 2015 10 anos Autor Em 19/04/2015 em 22:29, tioj disse: geralmente nos poketibia abre a cam msmo vc clickando no ok, ai nao ta abrindu nao? ?? n é isoo, vou te explicar. a primeira janela é para colocar o nome do canal e a segunda mostra a mensagem "Escolha um nome para o seu canal" eu queria trocar essa ordem so isso Meus Contatos! Minhas Funções: Mostrar conteúdo oculto Skype: TsplayerT Facebook: TakaFukushii YouTube: ADoseDupla Twitter: @_Splayer_ Mapper:▓▓▓▓▓▓▓▓▓▓ 97% Programmer:▓▓▓▓▓▒▒▒▒▒ 45% Scripter:▓▓▓▓▓▓▓▓▓▒ 83% Spriter:▓▓▓▓▓▓▒▒▒▒ 57% Gamemaster:▓▓▓▓▓▓▓▓▓▓ 99% Ot Creator:▓▓▓▓▓▓▓▒▒▒71% Ot Client Maker:▓▓▓▓▓▓▓▒▒▒74%
Postado Abril 20, 2015 10 anos bom vou tentar mexer aki qlqr coisa eu te aviso Minhas Gambiarras Mostrar conteúdo oculto [PDA] Pokedex Mostrando o Catch http://www.tibiaking.com/forum/topic/54998-pda-arrumando-a-dex/?view=findpost&p=323041
Postado Abril 21, 2015 10 anos Mostrar conteúdo oculto function onUse(cid, item, frompos, item2, topos) doPlayerPopupFYI(cid, "Escolha um nome para o seu canal.") if getPlayerStorageValue(cid, 99284) == 2 then doPlayerSendCancel(cid, "Feche o seu private chat antes de criar um canal de TV.") return true end if getPlayerStorageValue(cid, 99284) == 1 then doPlayerSendCancel(cid, "Você já esta no ar!, atualmente no canal "..getPlayerStorageValue(cid, 99285).."") doPlayerSendChannel(cid, getPlayerChannelId(cid), getPlayerStorageValue(cid, 99285)) return true end end
Participe da conversa
Você pode postar agora e se cadastrar mais tarde. Se você tem uma conta, faça o login para postar com sua conta.