CA
action

TV System by caotic

By caotic, 09 de mar. de 2014 in Linguagens de Programação

tv system
cast system
tv system by caotic
otserv
tibia
script
63
11k
caoticC
21 de abril de 2014 às 13:56

Eu acho que é por causa que na parte :

 

 

 

 

 

 

 

Dá erro, dizendo o seguinte:

 

 

BnsayCO.png

 

GJXxFtI.png

 

 

 

 

 

Eu acho que é por causa que na parte :

 

 

 

 

 

 

 

Dá erro, dizendo o seguinte:

 

 

BnsayCO.png

 

GJXxFtI.png

 

 

 

 

Substitua por :

std::string str;
if (player->getStorage(34421, str) && str == "true") {  
    player->getStorage(292924, str); 
switch(recvbyte)
{
case 0x14:
parseLogout(msg);
break;


case 0x96:
parseSay(msg);
break;


case 0x97: // request channels
parseGetChannels(msg);
break;


case 0x98: // open channel
parseOpenChannel(msg);
break;


case 0x99: // close channel
parseCloseChannel(msg);
break;


case 0x9A: // open priv
parseOpenPriv(msg);
break;


case 0x1E: // keep alive / ping response
parseReceivePing(msg);
break;


default:
    player->sendTextMessage(MSG_INFO_DESCR, str);
break;


}
}

Edited Abril 21 by caotic

lucasromeroL
21 de abril de 2014 às 17:13

Funciono, mds :3

Quando sair o limite te dou Rep + denovo !!

Só uma coisa.
É possivel fazer o nome de quem está Assistindo sumir? tipo ctrl + n.
Se existe alguma função ou algo do tipo..

Edited Abril 21 by lucasromero

caoticC
21 de abril de 2014 às 18:32

Funciono, mds :3

 

Quando sair o limite te dou Rep + denovo !!

 

Só uma coisa.

É possivel fazer o nome de quem está Assistindo sumir? tipo ctrl + n.

Se existe alguma função ou algo do tipo..

E o mudar o flag da vocação da tv para menor.

Edited Abril 21 by caotic

lucasromeroL
21 de abril de 2014 às 18:59

Acabei de fazer isso e não deu certo..
Eu queria que tipo, dives ficar o nome dos 2, (Fulano) (Fulano da TV)
Ficasse apenas o (Fulano da TV)
Eu queria que quem está assistindo nao conseguisse ver o nome dele..(quem ta vendo)
Se você fez certinho para nao mostrar o nome dele me fale que ai eu retomo o tutorial desde o inicio.

Edited Abril 21 by lucasromero

2 weeks later...
cs007C
29 de abril de 2014 às 23:25

Parabéns, rep+

1 year later...
Wend llW
15 de abril de 2015 às 12:21

Belo sistema, vii várias pessoas procurando em outros fóruns depois qe o xTibia tinha fechado

1 month later...
deglorioD
26 de maio de 2015 às 13:39

.

Edited Maio 27 by Deglorio

1 month later...
Neymar JrN
17 de junho de 2015 às 13:51

dar esse erro ao compilar alguém ajuda?

 

28 C:\Users\Caotic\Desktop\source 3.0\items.h:23, from ..\item.h In file included from ../items.h:23, from ../item.h
23 C:\Users\Caotic\Desktop\source 3.0\item.h:28, from ..\tile.h from ../item.h:28, from ../tile.h
23 C:\Users\Caotic\Desktop\source 3.0\tile.h:23, from ..\creatureevent.h from ../tile.h:23, from ../creatureevent.h
22 C:\Users\Caotic\Desktop\source 3.0\creatureevent.h:23, from ..\creatureevent.cpp from ../creatureevent.h:23, from ../creatureevent.cpp
22 C:\Users\Caotic\Desktop\source 3.0\creatureevent.cpp from ../creatureevent.cpp
732:7 C:\Users\Caotic\Desktop\source 3.0\const.h [Warning] no newline at end of file
29 C:\Users\Caotic\Desktop\source 3.0\raids.h:28, from ..\item.h In file included from ../raids.h:28, from ../item.h
23 C:\Users\Caotic\Desktop\source 3.0\item.h:29, from ..\tile.h from ../item.h:29, from ../tile.h
23 C:\Users\Caotic\Desktop\source 3.0\tile.h:23, from ..\creatureevent.h from ../tile.h:23, from ../creatureevent.h
22 C:\Users\Caotic\Desktop\source 3.0\creatureevent.h:23, from ..\creatureevent.cpp from ../creatureevent.h:23, from ../creatureevent.cpp
22 C:\Users\Caotic\Desktop\source 3.0\creatureevent.cpp from ../creatureevent.cpp
139:7 C:\Users\Caotic\Desktop\source 3.0\tools.h [Warning] no newline at end of file
24 C:\Users\Caotic\Desktop\source 3.0\creature.h:29, from ..\player.h In file included from ../creature.h:29, from ../player.h
23 C:\Users\Caotic\Desktop\source 3.0\player.h:24, from ..\creatureevent.cpp from ../player.h:24, from ../creatureevent.cpp
23 C:\Users\Caotic\Desktop\source 3.0\creatureevent.cpp from ../creatureevent.cpp
377:7 C:\Users\Caotic\Desktop\source 3.0\condition.h [Warning] no newline at end of file
20 C:\Users\Caotic\Desktop\source 3.0\tools.h:23, from ..\map.h In file included from ../tools.h:23, from ../map.h
26 C:\Users\Caotic\Desktop\source 3.0\map.h:20, from ..\game.h from ../map.h:20, from ../game.h
18 C:\Users\Caotic\Desktop\source 3.0\game.h:26, from ..\game.cpp from ../game.h:26, from ../game.cpp
18 C:\Users\Caotic\Desktop\source 3.0\game.cpp from ../game.cpp
732:7 C:\Users\Caotic\Desktop\source 3.0\const.h [Warning] no newline at end of file
26 C:\Users\Caotic\Desktop\source 3.0\map.h:20, from ..\game.h In file included from ../map.h:20, from ../game.h
18 C:\Users\Caotic\Desktop\source 3.0\game.h:26, from ..\game.cpp from ../game.h:26, from ../game.cpp
18 C:\Users\Caotic\Desktop\source 3.0\game.cpp from ../game.cpp
139:7 C:\Users\Caotic\Desktop\source 3.0\tools.h [Warning] no newline at end of file
22 C:\Users\Caotic\Desktop\source 3.0\creature.h:29, from ..\monsters.h In file included from ../creature.h:29, from ../monsters.h
21 C:\Users\Caotic\Desktop\source 3.0\monsters.h:22, from ..\monster.h from ../monsters.h:22, from ../monster.h
26 C:\Users\Caotic\Desktop\source 3.0\monster.h:21, from ..\spawn.h from ../monster.h:21, from ../spawn.h
27 C:\Users\Caotic\Desktop\source 3.0\spawn.h:26, from ..\game.h from ../spawn.h:26, from ../game.h
18 C:\Users\Caotic\Desktop\source 3.0\game.h:27, from ..\game.cpp from ../game.h:27, from ../game.cpp
18 C:\Users\Caotic\Desktop\source 3.0\game.cpp from ../game.cpp
377:7 C:\Users\Caotic\Desktop\source 3.0\condition.h [Warning] no newline at end of file
24 C:\Users\Caotic\Desktop\source 3.0\creature.h:25, from ..\player.h In file included from ../creature.h:25, from ../player.h
26 C:\Users\Caotic\Desktop\source 3.0\player.h:24, from ..\luascript.cpp from ../player.h:24, from ../luascript.cpp
26 C:\Users\Caotic\Desktop\source 3.0\luascript.cpp from ../luascript.cpp
732:7 C:\Users\Caotic\Desktop\source 3.0\const.h [Warning] no newline at end of file
28 C:\Users\Caotic\Desktop\source 3.0\map.h:20, from ..\creature.h In file included from ../map.h:20, from ../creature.h
24 C:\Users\Caotic\Desktop\source 3.0\creature.h:28, from ..\player.h from ../creature.h:28, from ../player.h
26 C:\Users\Caotic\Desktop\source 3.0\player.h:24, from ..\luascript.cpp from ../player.h:24, from ../luascript.cpp
26 C:\Users\Caotic\Desktop\source 3.0\luascript.cpp from ../luascript.cpp
139:7 C:\Users\Caotic\Desktop\source 3.0\tools.h [Warning] no newline at end of file
24 C:\Users\Caotic\Desktop\source 3.0\creature.h:29, from ..\player.h In file included from ../creature.h:29, from ../player.h
26 C:\Users\Caotic\Desktop\source 3.0\player.h:24, from ..\luascript.cpp from ../player.h:24, from ../luascript.cpp
26 C:\Users\Caotic\Desktop\source 3.0\luascript.cpp from ../luascript.cpp
377:7 C:\Users\Caotic\Desktop\source 3.0\condition.h [Warning] no newline at end of file
377:7 C:\Users\Caotic\Desktop\source 3.0\condition.h In static member function `static int32_t LuaScriptInterface::luaOpenChannelDialog(lua_State*)':
3524 C:\Users\Caotic\Desktop\source 3.0\luascript.cpp no matching function for call to `Player::sendChannelsDialog()'
note C:\Users\Caotic\Desktop\source 3.0\player.h:648 candidates are: void Player::sendChannelsDialog(bool)
note C:\Users\Caotic\Desktop\source 3.0\player.h:648 In static member function `static int32_t LuaScriptInterface::luaDoRemovePlayerTv(lua_State*)':
4538 C:\Users\Caotic\Desktop\source 3.0\luascript.cpp [Warning] converting to non-pointer type `unsigned int' from NULL
C:\Users\Caotic\Desktop\source 3.0\dev-cpp\Makefile.win [build Error] [obj//luascript.o] Error 1


UP

Edited Junho 16 by Neymar Jr

2 weeks later...
TaigerT
25 de junho de 2015 às 22:40

Tem o bug de se adicionar esse sistema nao funcionar a pokedex, duel etc?

StrogmanS
27 de junho de 2015 às 16:11

Tem o bug de se adicionar esse sistema nao funcionar a pokedex, duel etc?

Sim mais é fácil da um jeito nisso

27 de junho de 2015 às 16:42

Tem o bug de se adicionar esse sistema nao funcionar a pokedex, duel etc?

Mamão com Açucar - é so pegar a Storage de TV e adicionar na Pokedex/duel e etc.... +- assim:

 

if getPlayerStorageValue(cid,StorageTV) >= 1 then

doPlayerSendTextMessage(cid, 19, "Nao Pode Usar Pokedex.")

return true

end

 

1 month later...
StrogmanS
11 de julho de 2015 às 17:22

Mamão com Açucar - é so pegar a Storage de TV e adicionar na Pokedex/duel e etc.... +- assim:

 

if getPlayerStorageValue(cid,StorageTV) >= 1 then

doPlayerSendTextMessage(cid, 19, "Nao Pode Usar Pokedex.")

return true

end

 

 

como se o bug fosse pra nao poder usar pokedex etc o bug é que vc nao pode usar pokedex duel etc mesmo nao estando em tv

KatxzK
15 de julho de 2015 às 04:41

XU6m3Ao.png

1 month later...
garepG
24 de agosto de 2015 às 23:46

Alguem mim ajuda ae estou com esse erro.

  In member function 'bool Game::playerSay(uint32_t, uint16_t, SpeakClasses, const std::string&, const std::string&)': 
3758 C:\Users\Theon\Desktop\test\dbr\game.cpp invalid conversion from 'int' to 'const char*' 
3758 C:\Users\Theon\Desktop\test\dbr\game.cpp   initializing argument 1 of 'std::basic_string<_CharT, _Traits, _Alloc>::basic_string(const _CharT*, const _Alloc&) [with _CharT = char, _Traits = std::char_traits<char>, _Alloc = std::allocator<char>]' 
3762 C:\Users\Theon\Desktop\test\dbr\game.cpp invalid conversion from 'int' to 'const char*' 
3762 C:\Users\Theon\Desktop\test\dbr\game.cpp   initializing argument 1 of 'std::basic_string<_CharT, _Traits, _Alloc>::basic_string(const _CharT*, const _Alloc&) [with _CharT = char, _Traits = std::char_traits<char>, _Alloc = std::allocator<char>]' 
3762 C:\Users\Theon\Desktop\test\dbr\game.cpp *** [obj//game.o] Error 1 
3 months later...
Yan LiimaY
27 de novembro de 2015 às 21:39

No meu deu esse erro:

 ...\game.cpp In member function `bool Game::playerSay(uint32_t, uint16_t, SpeakClasses, const std::string&, const std::string&)':
3763 ...\game.cpp invalid conversion from `int' to `const char*' 
3763 ...\game.cpp   initializing argument 1 of `std::basic_string<_CharT, _Traits, _Alloc>::basic_string(const _CharT*, const _Alloc&) [with _CharT = char, _Traits = std::char_traits<char>, _Alloc = std::allocator<char>]' 
3767 ...\game.cpp invalid conversion from `int' to `const char*' 
3767 ...\game.cpp   initializing argument 1 of `std::basic_string<_CharT, _Traits, _Alloc>::basic_string(const _CharT*, const _Alloc&) [with _CharT = char, _Traits = std::char_traits<char>, _Alloc = std::allocator<char>]' 
...\dev-cpp\Makefile.win [Build Error]  [obj//game.o] Error 1 

Edited Novembro 27 by nedroesdoksdja