TR
dúvida

Como aumentar o numero de outfits ?

Por Treevo, 11 de jul. de 2013 em Scripts

15
1.7k
TreevoT
11 de julho de 2013 às 11:47

Como aumenta o numero maximo de outfits ?? no meu ot no caso tem 400 outfits , eu fiz outras novas mas n sei como aumentar o numero maximo de outfits .. alguem pode me ajudar ?

BhorisB
11 de julho de 2013 às 11:56

você quer saber como adiciona novas outfits?

cara para adicionar mais outfits para o player escolher é so alterar no xml (data/XML/outfit.xml) vai estar lá premium = "yes" você coloca "no" assim os players normais poderam escolher mais outfits

agora para add novas é so por a outfit no client e depois no xml!

vinnevinneV
11 de julho de 2013 às 11:57

vc quer colocar essas outfits ou so pra ver dentro do client?

TreevoT
11 de julho de 2013 às 12:02

E tipo , eu adicionei novas outfits no client, porem elas n aparecem no /newtype, o numero maximo la e 400, como almento esse numero ?

11 de julho de 2013 às 12:14

Vai em Pasta do ot/Data/talkactions/newtype,abre ele e tu vai entender

TreevoT
11 de julho de 2013 às 12:31

Putz !, tudo que eu quero e aumentar o numero maximo de outfits para as novas outfits poderem entrar no comando /newtype :(

11 de julho de 2013 às 12:34

Pasta do seu ot/data/talkacations/scripts/newtype

 

Apaga tudo oque tem nele e ponha isso

 

 

tion onSay(cid, words, param, channel)
if(param == '') then
doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "Command requires param.")
return true
end
 
local t = string.explode(param, ",")
t[1] = tonumber(t[1])
if(not t[1]) then
doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "Command requires numeric param.")
return true
end
 
local pid = cid
if(t[2]) then
pid = getPlayerByNameWildcard(t[2])
if(not pid or (isPlayerGhost(pid) and getPlayerGhostAccess(pid) > getPlayerGhostAccess(cid))) then
doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "Player " .. t[2] .. " not found.")
return true
end
end
 
if(t[1] <= 1 or t[1] == 135 or (t[1] > 160 and t[1] < 192) or t[1] > 520) then
doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "Such outfit does not exist.")
return true
end
 
local tmp = getCreatureOutfit(pid)
tmp.lookType = t[1]
 
doCreatureChangeOutfit(pid, tmp)
return true
end
TreevoT
11 de julho de 2013 às 12:50

cara n e isso , olha eu criei novas outfits e botei no client, ai eu queria saber como aumenta o numero de outfits para elas aparecerem no /newtype, por que o numero maximo e 400, portanto n tem como mais colocar ..

 

 

12:50 /newtype 401
12:50 Such outfit does not exist. << olha

Editado Julho 11 por Treevo

11 de julho de 2013 às 12:57

TU FEZ OQUE EU FALEI ALI ENCIMA POW?

TreevoT
11 de julho de 2013 às 12:58

Sim, eu botei mais o comando não funcionou eu falo /newtype 300 e não funciona s;

Editado Julho 11 por Treevo

BhorisB
11 de julho de 2013 às 13:02

Tenta esse:

 

 

 

function onSay(cid, words, param, channel)
if(param == '') then
doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "Command requires param.")
return true
end
local t = string.explode(param, ",")
t[1] = tonumber(t[1])
if(not t[1]) then
doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "Command requires numeric param.")
return true
end
local pid = cid
if(t[2]) then
pid = getPlayerByNameWildcard(t[2])
if(not pid or (isPlayerGhost(pid) and getPlayerGhostAccess(pid) > getPlayerGhostAccess(cid))) then
doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "Player " .. t[2] .. " not found.")
return true
end
end
if(t[1] <= 1 or t[1] == 135 or (t[1] > 160 and t[1] < 192) or t[1] > 351) then
doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "Such outfit does not exist.")
return true
end
local tmp = getCreatureOutfit(pid)
tmp.lookType = t[1]
doCreatureChangeOutfit(pid, tmp)
return true
end

TreevoT
11 de julho de 2013 às 13:10

Deu certo, eu mudei de 351 para 400 no seu script e funciono :3 :3 vlws man vlws msm

Editado Julho 11 por Treevo

11 de julho de 2013 às 13:15

Então o meu deu certo?

BhorisB
11 de julho de 2013 às 13:18

Duvida senada

Topico reportado!

BeekiB
11 de julho de 2013 às 14:06

Dúvida sanada, tópico movido para a sessão correta.