EOSERV Forum > Client Editing > A Loudspeaker
Topic is locked.
Page: << 1 >>
A Loudspeaker
Author Message
Post #14119 A Loudspeaker

Is it possible to create an item where in you can only use global chat if you this kind of item like a loudspeaker?

14 years, 42 weeks ago
Post #14120 Re: A Loudspeaker

Explain a bit more

I think i know what you mean and i know its possible. But still explain to make sure.

---
http://www.addipop.com
14 years, 42 weeks ago
Post #14124 Re: A Loudspeaker

I think I know what you mean, i've seen this in other mmo's. Maybe you can try throwing an if ...HasItem(itemid, 1) in the the global chat parameters in Talk.cpp

14 years, 42 weeks ago
Post #14150 Re: A Loudspeaker

To addison.

its just like making a requirement for chatting in global

if you have loudspeaker you can chat at global (depends on how many you have)

if you dont have loudspeaker you cant chat on global


did you get it?

14 years, 42 weeks ago
Post #14152 Re: A Loudspeaker

Yeah, here ya go. You probably can find out where to add it.


if (!this->player->character->HasItem(itemid)) return true;


Add before sending the message.

---
http://www.addipop.com
14 years, 42 weeks ago
Post #14156 Re: A Loudspeaker

Actually i dont know...

sorry for my noobish but can you tell me where?

14 years, 42 weeks ago
Post #14191 Re: A Loudspeaker

talk.cpp under where it says something about the global thing. Then it will check if they dont have it and will do nothing if so. Much easier than a whole if statement.

---
http://www.addipop.com
14 years, 42 weeks ago
Post #14308 Re: A Loudspeaker

To ADDISON (YOU forgot something that to delete tha item when have typed 1 message [he said the more u have the more u can talk :D] soo make the code so it deletes item after typed one message??)

14 years, 42 weeks ago
Page: << 1 >>
Topic is locked.
EOSERV Forum > Client Editing > A Loudspeaker