Por Favor Me Ajudem, Erro Na Contagem De Mana E Runas, E Aneis E Amuletos Bugados!

lmg
Por lmg
em Lixeira Pública

lmg

avatar
Campones
Campones

INFOS

Grupo: CamponesRegistrado: 22/05/11Posts: 0Char no Tibia: sir dirra

Por favor me ajudem

tipo eu tenho 300 mana no char e ele só fala que eu tenho 100, ai zera e conta de novo, ate acaba as 300, não consigo arrumar, e tambem os meus stone skin amulet e might ring estão bugados eles não acabam, é infinito.

meu ot é 8.6 The Forgotten Server.

141831

Good For You
avatar
Campones
Campones

INFOS

Grupo: CamponesRegistrado: 15/09/11Posts: 44Char no Tibia: Bielzin Ziika

O problema dos aneis e amuletos :

 

Va na pasta do seu OT data/items/items.xml

 

E nos dois adiciona a seguinte linha :

 

<attribute key="charges" value="1" />

 

Vermelho -- numero de vezes que o item podera ser usado ( o numero de cargas ) .

 

Flws .

Att,

StremeMakky

wigflip-ds.gif

wigflip-ds.gif

8ae65c69e4924e66af4fc3e44743c7e6.0.gif

Comecei Agora A Participar Do Forum Dia 13/10/11 . _____________________________________MSN : strememakky@hotmail.com

Meus Trabalhos

Nova Magia De Trap

Tente A Sorte 2

lmg

avatar
Campones
Campones

INFOS

Grupo: CamponesRegistrado: 22/05/11Posts: 0Char no Tibia: sir dirra

aee manoo não deu certo não

141831

Good For You
avatar
Campones
Campones

INFOS

Grupo: CamponesRegistrado: 15/09/11Posts: 44Char no Tibia: Bielzin Ziika

aee manoo não deu certo não

 

Poste aqui ou me manda PM os scripts do amulet e do ring ..

Esperando .....

Att,

StremeMakky

wigflip-ds.gif

wigflip-ds.gif

8ae65c69e4924e66af4fc3e44743c7e6.0.gif

Comecei Agora A Participar Do Forum Dia 13/10/11 . _____________________________________MSN : strememakky@hotmail.com

Meus Trabalhos

Nova Magia De Trap

Tente A Sorte 2

lmg

avatar
Campones
Campones

INFOS

Grupo: CamponesRegistrado: 22/05/11Posts: 0Char no Tibia: sir dirra

qual script voce fala?

em que pasta?

Fir3element

avatar
Conde
Conde

INFOS

Grupo: CondeRegistrado: 16/06/08Posts: 998Gênero: Masculino

+- isso

 

items/items.xml

<item id="2197" article="a" name="stone skin amulet">
	<attribute key="weight" value="760" />
	<attribute key="slotType" value="necklace" />
	<attribute key="charges" value="5" />
	<attribute key="showcharges" value="1" />
	<attribute key="absorbPercentPhysical" value="80" />
	<attribute key="absorbPercentDeath" value="80" />
	<attribute key="showattributes" value="1" />
</item>

<attribute key="charges" value="5" />

 

--

 

Sobre a contagem, o fix é pelas sources (tem que saber compilar e editar elas).

 

game.cpp

void Game::showHotkeyUseMessage(Player* player, Item* item)
{
int32_t subType = -1;
if(item->hasSubType() && !item->hasCharges())
	subType = item->getSubType();

const ItemType& it = Item::items[item->getID()];
uint32_t count = player->__getItemTypeCount(item->getID(), subType, false);

char buffer[40 + it.name.size()];
if(count == 1)
	sprintf(buffer, "Using the last %s...", it.name.c_str());
else
	sprintf(buffer, "Using one of %d %s...", count, it.pluralName.c_str());

player->sendTextMessage(MSG_INFO_DESCR, buffer);
}

 

substitui por

void Game::showHotkeyUseMessage(Player* player, Item* item)
{
       const ItemType& it = Item::items[item->getID()];
       uint32_t count = player->__getItemTypeCount(item->getID(), -1);

       char buffer[40 + it.name.size()];
       if(count == 1)
               sprintf(buffer, "Using the last %s...", it.name.c_str());
       else
               sprintf(buffer, "Using one of %d %s...", count, it.pluralName.c_str());

       player->sendTextMessage(MSG_INFO_DESCR, buffer);
}

141831

Good For You
avatar
Campones
Campones

INFOS

Grupo: CamponesRegistrado: 15/09/11Posts: 44Char no Tibia: Bielzin Ziika

o.O Meu Deus ... Eh so adiciona isso no script :

 

function onUse(cid, item, frompos, item2, topos)

Bla , Bla , Bla ..

Pule umas quatro ou cincos linhas e adicone isso :

doPlayerRemoveItem(cid,2692,1)

 

Vermelho -- ID do item que ao ser usado , vai ser removido .

 

Flws . :smile_positivo:

Att,

StremeMakky

wigflip-ds.gif

wigflip-ds.gif

8ae65c69e4924e66af4fc3e44743c7e6.0.gif

Comecei Agora A Participar Do Forum Dia 13/10/11 . _____________________________________MSN : strememakky@hotmail.com

Meus Trabalhos

Nova Magia De Trap

Tente A Sorte 2