Ir para conteúdo
  • Cadastre-se

(Resolvido)Outfit e Sitema VIP


Ir para solução Resolvido por GiovaniRodrigo,

Posts Recomendados

Ola galera

Criei um ot e quando eu vou pescar aparece pra botar roupa de fisher eu queria saber como que eu faço pra poder pescar com qualquer roupa porque a roupa de "FISHER" esta disponível so pra VIPS e eu queria colocar VIP pago, ou se não passar a roupa de fisher para players free 

E e o sistema vip ta bugado player Free pode usar o teleporte do Cacaiu que fica no CP, quero que só VIPS possam utiliza-lo pra que fique tipo uma área VIP, quem souber arrumar Valleww   ...



REP++++++++++++++++ PRA QUEM AJUDAR URGENTE


Se precisar conectar no meu PC via Team Viwer qualquer coisa só falar!! Vallewww


Uso centurion V4 eu sei que e meio bugado mais eu gosto do mapa dele!

Editado por felipinkoak (veja o histórico de edições)

                                                                                           SE TE AJUDEI CLICA EM  :accept:, NÃO CUSTA NADA  ;D 

Atenciosamente

     xPollo                                         

Da Play No Reggaezin Ai Boy

http://www.mjbstudio.com/myspace/mjb_playlist/jamming.mp3
 

Link para o post
Compartilhar em outros sites

Cara to sem tempo de criar um VIP System pra você, então criei o NPC que vende premium account por diamantes

Crie um arquivo chamado npcvip.lua na pasta data/npc/scripts e cole isso

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
 
local cfg = {
          days = 30 -- Dias de premium account
          count = 15 -- Quantidade de diamantes
          item = 1234 -- ID do diamante
}
 
function creatureSayCallback(cid, type, msg)
          if(not npcHandler:isFocused(cid)) then
                    return false
          end
 
          local talkUser = NPCHANDLER_CONVBEHAVIOR == CONVERSATION_DEFAULT and 0 or cid
 
          if msgcontains(msg, "buy vip") then
                    selfSay("You want to buy ".. cfg.days .." days vip for "cfg.count .." ".. getItemNameById(cfg.item) .."?", cid)
                    talkState[takUser] = 1
          elseif talkState[takUser] == 1 then
                    if msgcontains(msg, "yes") then
                              if getPlayerItemCount(cid, cfg.item) >= cfg.count then
                                        doPlayerRemoveItem(cid, cfg.item, cfg.count)
                                        doPlayerAddPremiumDays(cid, cfg.days)
                                        talkState[takUser] = 0
                              else
                                        selfSay("You don't have "cfg.count .." ".. getItemNameById(cfg.item) ..".", cid)
                              end
                    end
          end
          return TRUE
end
 
npcHandler:setCallback(CALLBACK_MESSAGE_DEFAULT, creatureSayCallback)
npcHandler:addModule(FocusModule:new())

Crie um arquivo chamado Bonifacius.xml na pasta data/npc e cole isso

<?xml version="1.0" encoding="UTF-8"?>
<npc name="Bonifacius" script="data/npc/scripts/npcvip.lua" walkinterval="25" floorchange="0" access="5" level="1" maglevel="1">
          <health now="150" max="150"/>
          <look type="128" head="97" body="100" legs="115" feet="114" corpse="2212"/>
          <parameters>
                    <parameter key="message_greet" value="Hey |PLAYERNAME|! To buy vip say {buy vip}"/>
                    <parameter key="message_walkaway" value="Hey Hey, where you go ?"/>
                    <parameter key="message_farewell" value="Bye bye brave soldier. Remember, peoples without head, don't transform in undeads."/>
          </parameters>
</npc>

A questão do outfit, poste o outfits.xml que se encontra na pasta data/XML

 

Att.

Giovani Rodrigo

Spoiler

local config = {
	delrey = getPlayerCarValue(cid, DELREY),
	cigarro = getPlayerCancer(cid, DERBY),
	prostituta = getPlayerAIDS(cid, cracuda),
	tresOitao = getPlayerRevorvi(cid, 38)
}

if(delrey == "Ligado" and cigarro == "Aceso" and prostituta == "No Colo" and tresOitao == "Carregado") then
	doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, "Começou o fim de semana. #PAS")
end

 

Link para o post
Compartilhar em outros sites

Cara já consegui o da compra de VIP mais o Cacaiu ainda ta bugado mais vallew vo da rep +jah se você souber arrumar o Cacaiu!

Ta ai a xml do Outfits
 

<?xml version="1.0" encoding="UTF-8"?>
<outfits>
        <outfit id="1">  
                <list gender="0" lookType="511" name="Normal Trainer"/>  
                <list gender="1" lookType="510" name="Normal Trainer"/>  
        </outfit>  
  
        <outfit id="2" premium="yes">  
                <list gender="0" lookType="615" name="Elite Trainer"/>
                <list gender="1" lookType="614" name="Elite Trainer"/>  
        </outfit>  
  
        <outfit id="3" premium="yes">  
                <list gender="0" lookType="521" name="Fisher"/>  
                <list gender="1" lookType="520" name="Fisher"/>  
        </outfit>  
  
        <outfit id="4" premium="yes">  
<list gender="0" lookType="512" name="Rapper"/>
<list gender="1" lookType="545" name="Rapper"/> 
        </outfit>  
  
        <outfit id="5" premium="yes">  
                <list gender="0" lookType="517" name="Athletic"/>  
                <list gender="1" lookType="516" name="Athletic"/>  
        </outfit> 
  
        <outfit id="6" premium="yes">  
                <list gender="0" lookType="588" name="Jamaican"/>  
                <list gender="1" lookType="587" name="Jamaican"/>  
        </outfit>  
  
        <outfit id="7" premium="yes">  
                <list gender="0" lookType="1163" name="Ninja"/>  
                <list gender="1" lookType="1761" name="Ash"/>  
        </outfit>  
  
        <outfit id="8">  
                <list gender="0" lookType="525" name="Hiker"/>  
                <list gender="1" lookType="523" name="Hiker"/>  
        </outfit>  
  
        <outfit id="9" premium="yes">  
                <list gender="0" lookType="524" name="Mercenary"/>  
                <list gender="1" lookType="522" name="Mercenary"/>  
        </outfit>  
  
        <outfit id="10" premium="yes">  
                <list gender="0" lookType="519" name="Punk"/> 
                <list gender="1" lookType="518" name="Punk"/> 
        </outfit>  
  
        <outfit id="11">  
                <list gender="0" lookType="495" name="Adventurer"/>  
                <list gender="1" lookType="494" name="Adventurer"/>  
        </outfit>   
 
        <outfit id="12" premium="yes"> quest="588957">
                <list gender="0" lookType="1756" name="Star"/>  
                <list gender="1" lookType="1562" name="Star"/>  
        </outfit> 
 
        <outfit id="13" premium="yes">  
                <list gender="0" lookType="1188" name="Bruxinha"/>  
                <list gender="1" lookType="1189" name="Caveira"/>  
        </outfit> 
 
        <outfit id="14" premium="yes">  
                <list gender="0" lookType="1190" name="Bruxa"/>  
                <list gender="1" lookType="1191" name="Bruxo"/>  
        </outfit> 
<!-- PROMOTE -->
<outfit id="15" quest="181612">
<list gender="0" lookType="1149" name="Naturia"/>
<list gender="1" lookType="1159" name="Naturia"/>
</outfit>
<outfit id="16" quest="181613">
<list gender="0" lookType="1152" name="Volcanic"/>
<list gender="1" lookType="1154" name="Volcanic"/>
</outfit>
<outfit id="17" quest="181614">
<list gender="0" lookType="1146" name="Gardestrike"/>
<list gender="1" lookType="1155" name="Gardestrike"/>
</outfit>
<outfit id="18" quest="181615">
<list gender="0" lookType="1153" name="Malefic"/>
<list gender="1" lookType="1157" name="Malefic"/>
</outfit>
<outfit id="19" quest="181616">
<list gender="0" lookType="1148" name="Wingeon"/>
<list gender="1" lookType="1158" name="Wingeon"/>
</outfit>
<outfit id="20" quest="181617">
<list gender="0" lookType="1147" name="Raibolt"/>
<list gender="1" lookType="1160" name="Raibolt"/>
</outfit>
<outfit id="21" quest="181618">
<list gender="0" lookType="1145" name="Psycraft"/>
<list gender="1" lookType="1161" name="Psycraft"/>
</outfit>
<outfit id="22" quest="181619">
<list gender="0" lookType="1151" name="Seavell"/>
<list gender="1" lookType="1162" name="Seavell"/>
</outfit>
<outfit id="23" quest="181620">
<list gender="0" lookType="1150" name="Orebound"/>
<list gender="1" lookType="1156" name="Orebound"/>
</outfit>
<!-- PROMOTE RANK 5 -->
<outfit id="24" quest="181621">
<list gender="0" lookType="1179" name="Raibolt Legend"/>
<list gender="1" lookType="1164" name="Raibolt Legend"/>
</outfit>
<outfit id="25" quest="181622">
<list gender="0" lookType="1847" name="Seavell Queen"/>
<list gender="1" lookType="1165" name="Seavell King"/>
</outfit>
<outfit id="26" quest="181623">
<list gender="0" lookType="1846" name="Naturia Keeper"/>
<list gender="1" lookType="1166" name="Naturia Keeper"/>
</outfit>
<outfit id="27" quest="181624">
<list gender="0" lookType="1845" name="Malefic Lady"/>
<list gender="1" lookType="1841" name="Malefic Lord"/>
</outfit>
<outfit id="28" quest="181625">
<list gender="0" lookType="1848" name="Volcanic Master"/>
<list gender="1" lookType="1168" name="Volcanic Master"/>
</outfit>
<outfit id="29" quest="181626">
<list gender="0" lookType="1175" name="Wingeon Dragon"/>
<list gender="1" lookType="1169" name="Wingeon Dragon"/>
</outfit>
<outfit id="30" quest="181627">
<list gender="0" lookType="1844" name="Orebound Hero"/>
<list gender="1" lookType="1842" name="Orebound Hero"/>
</outfit>
<outfit id="31" quest="181628">
<list gender="0" lookType="1173" name="Gardestrike Lady"/>
<list gender="1" lookType="1171" name="Gardestrike Champion"/>
</outfit>
<outfit id="32" quest="181629">
<list gender="0" lookType="1181" name="Psycraft Medium"/>
<list gender="1" lookType="1843" name="Psycraft Medium"/>
</outfit>
<!-- PROMOTE MASTER -->
<outfit id="33" quest="181630">
<list gender="0" lookType="1437" name="Raibolt Master"/>
<list gender="1" lookType="1421" name="Raibolt Master"/>
</outfit>
<outfit id="34" quest="181631">
<list gender="0" lookType="1438" name="Seavell Master"/>
<list gender="1" lookType="1422" name="Seavell Master"/>
</outfit>
<outfit id="35" quest="181632">
<list gender="0" lookType="1434" name="Naturia Master"/>
<list gender="1" lookType="1423" name="Naturia Master"/>
</outfit>
<outfit id="36" quest="181633">
<list gender="0" lookType="1430" name="Malefic Master"/>
<list gender="1" lookType="1428" name="Malefic Master"/>
</outfit>
<outfit id="37" quest="181634">
<list gender="0" lookType="1432" name="Volcanic Superior"/>
<list gender="1" lookType="1425" name="Volcanic Superior"/>
</outfit>
<outfit id="38" quest="181635">
<list gender="0" lookType="1433" name="Wingeon Master"/>
<list gender="1" lookType="1424" name="Wingeon Master"/>
</outfit>
<outfit id="39" quest="181636">
<list gender="0" lookType="1436" name="Orebound Master"/>
<list gender="1" lookType="1427" name="Orebound Master"/>
</outfit>
<outfit id="40" quest="181637">
<list gender="0" lookType="1431" name="Gardestrike Master"/>
<list gender="1" lookType="1429" name="Gardestrike Master"/>
</outfit>
<outfit id="41" quest="181638">
<list gender="0" lookType="1435" name="Psycraft Master"/>
<list gender="1" lookType="1426" name="Psycraft Master"/>
</outfit> 
<!-- POLICE E ROCKET -->
<outfit id="42" quest="181604">
<list gender="0" lookType="605" name="Rocket"/>
<list gender="1" lookType="604" name="Rocket"/>
</outfit>
 
<outfit id="43" quest="181652">
<list gender="0" lookType="1184" name="Police Officer"/>
<list gender="1" lookType="1183" name="Police Officer"/>
</outfit>     
</outfits>

                                                                                           SE TE AJUDEI CLICA EM  :accept:, NÃO CUSTA NADA  ;D 

Atenciosamente

     xPollo                                         

Da Play No Reggaezin Ai Boy

http://www.mjbstudio.com/myspace/mjb_playlist/jamming.mp3
 

Link para o post
Compartilhar em outros sites
  • Solução

Troque seu outfit Fisher por esse

<outfit id="3" premium="no">  
          <list gender="0" lookType="521" name="Fisher"/>  
          <list gender="1" lookType="520" name="Fisher"/>  
</outfit>

O teleport do Cacaiu tem algum script? Se sim, poste.

Spoiler

local config = {
	delrey = getPlayerCarValue(cid, DELREY),
	cigarro = getPlayerCancer(cid, DERBY),
	prostituta = getPlayerAIDS(cid, cracuda),
	tresOitao = getPlayerRevorvi(cid, 38)
}

if(delrey == "Ligado" and cigarro == "Aceso" and prostituta == "No Colo" and tresOitao == "Carregado") then
	doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, "Começou o fim de semana. #PAS")
end

 

Link para o post
Compartilhar em outros sites

Ta ai pow vallew pelo Fisher REP+++

Ta ai o XML do Cacaiu

 

<?xml version="1.0"?>
<npc name="Cacaiu" script="data/npc/scripts/boat_mystic.lua" access="3" walkinterval="0" floorchange="0">
  <look type="1562" head="20" body="30" legs="40" feet="50"/>
<parameters>
      <parameter key="module_travel" value="1"/>
<parameter key="message_greet" value="Blz |PLAYERNAME|. Quer ir para onde Saffron, Novo Continente, Nova City, City Um, City Dois, City Tres?"/>
        <parameter key="travel_destinations" value="saffron,1053,1053,7,100;novo continente,1253,249,7,100;nova city,1471,234,7,100;city um,1825,843,7,100;city dois,1676,890,7,100;city tres,1784,1335,7,100"/>
</parameters>
</npc>




Se nao for isso fala aonde fica oque você esta pedindo
Editado por felipinkoak (veja o histórico de edições)

                                                                                           SE TE AJUDEI CLICA EM  :accept:, NÃO CUSTA NADA  ;D 

Atenciosamente

     xPollo                                         

Da Play No Reggaezin Ai Boy

http://www.mjbstudio.com/myspace/mjb_playlist/jamming.mp3
 

Link para o post
Compartilhar em outros sites

Post o script boat_mystic.lua que se encontra na pasta data/npc/scripts

Spoiler

local config = {
	delrey = getPlayerCarValue(cid, DELREY),
	cigarro = getPlayerCancer(cid, DERBY),
	prostituta = getPlayerAIDS(cid, cracuda),
	tresOitao = getPlayerRevorvi(cid, 38)
}

if(delrey == "Ligado" and cigarro == "Aceso" and prostituta == "No Colo" and tresOitao == "Carregado") then
	doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, "Começou o fim de semana. #PAS")
end

 

Link para o post
Compartilhar em outros sites
local keywordHandler = KeywordHandler:new()
local npcHandler = NpcHandler:new(keywordHandler)
NpcSystem.parseParameters(npcHandler)
 
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
 
npcHandler:addModule(FocusModule:new())

                                                                                           SE TE AJUDEI CLICA EM  :accept:, NÃO CUSTA NADA  ;D 

Atenciosamente

     xPollo                                         

Da Play No Reggaezin Ai Boy

http://www.mjbstudio.com/myspace/mjb_playlist/jamming.mp3
 

Link para o post
Compartilhar em outros sites
No arquivo do npc XML substitua por esse
<?xml version="1.0"?>
<npc name="Cacaiu" script="data/npc/scripts/boat_mystic.lua" access="3" walkinterval="0" floorchange="0">
          <look type="1562" head="20" body="30" legs="40" feet="50"/>
          <parameters>
                    <parameter key="message_greet" value="Blz |PLAYERNAME|. Quer ir para onde Saffron, Novo Continente, Nova City, City Um, City Dois, City Tres?" />
                    <parameter key="message_farewell" value="Bye bye!"/>
          </parameters>
</npc>
 
E no script boat_mystic.lua substitua por esse
local keywordHandler = KeywordHandler:new()
local npcHandler = NpcHandler:new(keywordHandler)
NpcSystem.parseParameters(npcHandler)
 
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
 
local travelNode = keywordHandler:addKeyword({'saffron'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'Do you wanna go to saffron, are you sure?'})
travelNode:addChildKeyword({'yes'}, StdModule.travel, {npcHandler = npcHandler, premium = true, level = 1, cost = 100, destination = {x=1053, y=1053, z=7} })
travelNode:addChildKeyword({'no'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, reset = true, text = 'Next time maybe.'})
 
local travelNode = keywordHandler:addKeyword({'novo continente'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'Do you wanna go to the novo continente, are you sure?'})
travelNode:addChildKeyword({'yes'}, StdModule.travel, {npcHandler = npcHandler, premium = true, level = 1, cost = 100, destination = {x=1253, y=249, z=7} })
travelNode:addChildKeyword({'no'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, reset = true, text = 'Next time maybe.'})
 
local travelNode = keywordHandler:addKeyword({'nova city'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'Do you wanna go to nova city, are you sure?'})
travelNode:addChildKeyword({'yes'}, StdModule.travel, {npcHandler = npcHandler, premium = true, level = 1, cost = 100, destination = {x=1471, y=234, z=7} })
travelNode:addChildKeyword({'no'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, reset = true, text = 'Next time maybe.'})
 
local travelNode = keywordHandler:addKeyword({'city um'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'Do you wanna go to city um, are you sure?'})
travelNode:addChildKeyword({'yes'}, StdModule.travel, {npcHandler = npcHandler, premium = true, level = 1, cost = 100, destination = {x=1825, y=843, z=7} })
travelNode:addChildKeyword({'no'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, reset = true, text = 'Next time maybe.'})
 
local travelNode = keywordHandler:addKeyword({'city dois'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'Do you wanna go to city dois, are you sure?'})
travelNode:addChildKeyword({'yes'}, StdModule.travel, {npcHandler = npcHandler, premium = true, level = 1, cost = 100, destination = {x=1676, y=890, z=7} })
travelNode:addChildKeyword({'no'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, reset = true, text = 'Next time maybe.'})
 
local travelNode = keywordHandler:addKeyword({'city tres'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'Do you wanna go to city tres, are you sure?'})
travelNode:addChildKeyword({'yes'}, StdModule.travel, {npcHandler = npcHandler, premium = true, level = 1, cost = 100, destination = {x=1784, y=1335, z=7} })
travelNode:addChildKeyword({'no'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, reset = true, text = 'Next time maybe.'})
Não testado.
Dúvidas? Me avise.
 
Att.
Giovani Rodrigo
Spoiler

local config = {
	delrey = getPlayerCarValue(cid, DELREY),
	cigarro = getPlayerCancer(cid, DERBY),
	prostituta = getPlayerAIDS(cid, cracuda),
	tresOitao = getPlayerRevorvi(cid, 38)
}

if(delrey == "Ligado" and cigarro == "Aceso" and prostituta == "No Colo" and tresOitao == "Carregado") then
	doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, "Começou o fim de semana. #PAS")
end

 

Link para o post
Compartilhar em outros sites

@GiovaniRodrigo

Cara eu fis certinho igual você falo e agora quando eu falo com ele ele não responde nada. Eu falo "hi" não acontece nada ajuda aew plis.

                                                                                           SE TE AJUDEI CLICA EM  :accept:, NÃO CUSTA NADA  ;D 

Atenciosamente

     xPollo                                         

Da Play No Reggaezin Ai Boy

http://www.mjbstudio.com/myspace/mjb_playlist/jamming.mp3
 

Link para o post
Compartilhar em outros sites
  • 1 year later...

O tópico foi movido para a área correta, preste mais atenção da próxima vez!

Leia as regras do fórum: http://tibiaking.com/forum/topic/1281-regras-gerais/?p=7680

Este tópico foi movido:

De: "OTServScriptingGeral"

Para: "OTServSuporte OTServSuporte de Scripts"

Te ajudei?? REP + e ficamos quites... <ahttp://www.tibiaking.com/forum/uploads/emoticons/default_happyy.png' alt=';D'>

Atenciosamente,

Daniel.

Abraços!

Link para o post
Compartilhar em outros sites

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.

Visitante
Responder

×   Você colou conteúdo com formatação.   Remover formatação

  Apenas 75 emojis são permitidos.

×   Seu link foi automaticamente incorporado.   Mostrar como link

×   Seu conteúdo anterior foi restaurado.   Limpar o editor

×   Não é possível colar imagens diretamente. Carregar ou inserir imagens do URL.

  • Quem Está Navegando   0 membros estão online

    Nenhum usuário registrado visualizando esta página.

×
×
  • Criar Novo...

Informação Importante

Confirmação de Termo