AZANIK 2 Postado Julho 5, 2012 Share Postado Julho 5, 2012 Ola ja cansei de colocar esse topíco no xtbia e niguem me atende ajuda ai E como colocar para que quando a vip do palyer acabe ele volte para thais ajuda ai por favor Link para o comentário https://xtibia.com/forum/topic/189286-ajuda-ai-com-um-scripit/ Compartilhar em outros sites More sharing options...
0 caotic 393 Postado Julho 5, 2012 Share Postado Julho 5, 2012 qual sistema de vip vc usa? Link para o comentário https://xtibia.com/forum/topic/189286-ajuda-ai-com-um-scripit/#findComment-1288951 Compartilhar em outros sites More sharing options...
0 AZANIK 2 Postado Julho 5, 2012 Autor Share Postado Julho 5, 2012 uso o system vip by mock Link para o comentário https://xtibia.com/forum/topic/189286-ajuda-ai-com-um-scripit/#findComment-1288952 Compartilhar em outros sites More sharing options...
0 caotic 393 Postado Julho 5, 2012 Share Postado Julho 5, 2012 (editado) Pocha cara se ninguem atendeu tente não cometer flood as vezes não consiguimos de atender todos os pedidos. Crie um arquivo chamado townvip.lua na pasta creature/scripts. function onThink(cid, interval, lastExecution, thinkInterval) local town = 6 -----Coloque o id da cidade que preferir---------- if vip.hasVip(cid) == FALSE and getPlayerStorageValue(cid, 86662) == 0 then doPlayerSetTown(cid, town) doPlayerSendTextMessage(cid, 24, "Sua vip acabou voce voltou para "..town.."") setPlayerStorageValue(cid, 86662, 1) return true end if vip.hasVip(cid) == TRUE then setPlayerStorageValue(cid, 86662, 0) return true end return true end Coloca esta tag em creaturescripts.xml <event type="think" name="townvip" event="script" value="townvip.lua"> Vai la em login.lua e coloca isto antes do ultimo return. registerCreatureEvent(cid, "townvip")</event> Editado Julho 5, 2012 por caotic Link para o comentário https://xtibia.com/forum/topic/189286-ajuda-ai-com-um-scripit/#findComment-1288965 Compartilhar em outros sites More sharing options...
0 AZANIK 2 Postado Julho 5, 2012 Autor Share Postado Julho 5, 2012 e vai funcionar? nao funcionou Link para o comentário https://xtibia.com/forum/topic/189286-ajuda-ai-com-um-scripit/#findComment-1288978 Compartilhar em outros sites More sharing options...
0 caotic 393 Postado Julho 5, 2012 Share Postado Julho 5, 2012 ñão o que deu?? Link para o comentário https://xtibia.com/forum/topic/189286-ajuda-ai-com-um-scripit/#findComment-1288992 Compartilhar em outros sites More sharing options...
0 AZANIK 2 Postado Julho 5, 2012 Autor Share Postado Julho 5, 2012 deu um erro no distro eu eu testie e nao funcionou puis asism no login arurma certo ai em manda por favor local config = { loginMessage = getConfigValue('loginMessage'), useFragHandler = getBooleanFromString(getConfigValue('useFragHandler')) } function onLogin(cid) registerCreatureEvent(cid, "onPrepareDeath") 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, "TopFrags") registerCreatureEvent(cid, "GuildMotd") registerCreatureEvent(cid, "Idle") if(config.useFragHandler) then registerCreatureEvent(cid, "SkullCheck") end registerCreatureEvent(cid, "inquisitionPortals") registerCreatureEvent(cid, "ReportBug") registerCreatureEvent(cid, "AdvanceSave") registerCreatureEvent(cid, "ArenaKill") registerCreatureEvent(cid, "reward") registerCreatureEvent(cid, "PythiusTheRotten") registerCreatureEvent(cid, "KillingInTheNameOf") registerCreatureEvent(cid, "task_count") registerCreatureEvent(cid, "FimVip") registerCreatureEvent(cid, "VipReceive") if getPlayerStorageValue(cid, 42309) < 1 then for i = 42300, 42309 do setPlayerStorageValue(cid, i, 0) end end if getPlayerStorageValue(cid, 42319) < 1 then for i = 42310, 42319 do setPlayerStorageValue(cid, i, 0) end end 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) end setPlayerStorageValue(cid, 42350, 0) setPlayerStorageValue(cid, 42352, 0) return true registerCreatureEvent(cid, "townvip") end Link para o comentário https://xtibia.com/forum/topic/189286-ajuda-ai-com-um-scripit/#findComment-1288994 Compartilhar em outros sites More sharing options...
0 caotic 393 Postado Julho 5, 2012 Share Postado Julho 5, 2012 editei tenta agr Link para o comentário https://xtibia.com/forum/topic/189286-ajuda-ai-com-um-scripit/#findComment-1288999 Compartilhar em outros sites More sharing options...
0 AZANIK 2 Postado Julho 5, 2012 Autor Share Postado Julho 5, 2012 posta ai nao apareceu aki Link para o comentário https://xtibia.com/forum/topic/189286-ajuda-ai-com-um-scripit/#findComment-1289007 Compartilhar em outros sites More sharing options...
0 caotic 393 Postado Julho 5, 2012 Share Postado Julho 5, 2012 Ai mudei o script denovo tirei alguns bugs que ia fazer o player muda de cidade toda hora Funfa agr e ta no post de la de cima Link para o comentário https://xtibia.com/forum/topic/189286-ajuda-ai-com-um-scripit/#findComment-1289013 Compartilhar em outros sites More sharing options...
0 AZANIK 2 Postado Julho 5, 2012 Autor Share Postado Julho 5, 2012 o loguin eu pusi do jeito certo? ainda nao deu certo algume me jaude por fravor Link para o comentário https://xtibia.com/forum/topic/189286-ajuda-ai-com-um-scripit/#findComment-1289014 Compartilhar em outros sites More sharing options...
0 Vodkart 1515 Postado Julho 5, 2012 Share Postado Julho 5, 2012 http://www.xtibia.com/forum/topic/141380-quando-vip-acabarser-teleportado-para-o-templo/ Link para o comentário https://xtibia.com/forum/topic/189286-ajuda-ai-com-um-scripit/#findComment-1289063 Compartilhar em outros sites More sharing options...
0 AZANIK 2 Postado Julho 6, 2012 Autor Share Postado Julho 6, 2012 fiz esatamente como sta no seu topíco mas nao funcionou ajuda ai alguem ajuda ai qo scruipit no topíco acima funcionoui mas eu quero ele volte a ser morador de thais qunado a vip acabar ajuda ai? Link para o comentário https://xtibia.com/forum/topic/189286-ajuda-ai-com-um-scripit/#findComment-1289081 Compartilhar em outros sites More sharing options...
0 Vodkart 1515 Postado Julho 6, 2012 Share Postado Julho 6, 2012 (editado) function onLogin(cid) local thais_town = 2 -- town da cidade de thais if vip.hasVip(cid) == TRUE then setPlayerStorageValue(cid, 9898, 1) elseif getPlayerStorageValue(cid, 9898) == 1 and vip.hasVip(cid) == FALSE and vip.getVip(cid) == 0 then doPlayerSetTown(cid, thais_town) doTeleportThing(cid, getTownTemplePosition(getPlayerTown(cid))) doPlayerPopupFYI(cid, "Sua vip Account acabou.") setPlayerStorageValue(cid, 9898, -1) end return true end Editado Julho 6, 2012 por Vodkart Link para o comentário https://xtibia.com/forum/topic/189286-ajuda-ai-com-um-scripit/#findComment-1289351 Compartilhar em outros sites More sharing options...
0 AZANIK 2 Postado Julho 6, 2012 Autor Share Postado Julho 6, 2012 eu ponho isso onde? Link para o comentário https://xtibia.com/forum/topic/189286-ajuda-ai-com-um-scripit/#findComment-1289357 Compartilhar em outros sites More sharing options...
0 Vodkart 1515 Postado Julho 6, 2012 Share Postado Julho 6, 2012 é o mesmo script daquele tópico que eu te passei, mas fiz a alteração que vc me pediu: "mas eu quero ele volte a ser morador de thais qunado a vip acabar" Link para o comentário https://xtibia.com/forum/topic/189286-ajuda-ai-com-um-scripit/#findComment-1289362 Compartilhar em outros sites More sharing options...
Pergunta
AZANIK 2
Ola ja cansei de colocar esse topíco no xtbia e niguem me atende ajuda ai
E como colocar para que quando a vip do palyer acabe ele volte para thais ajuda ai por favor
Link para o comentário
https://xtibia.com/forum/topic/189286-ajuda-ai-com-um-scripit/Compartilhar em outros sites
18 respostass a esta questão
Posts Recomendados