HomePortalFAQSearchMemberlistUsergroupsRegisterLog in
Meet the new KITO admins & hear their plans here.
You can use google search to find threads and posts here now. Example

Share | 
 

 Some Chat Stuff

View previous topic View next topic Go down 
AuthorMessage
Slain Motionless

avatar

Game username : The-Hunted
Server : Aroessa
Female Posts : 431
Join date : 2014-05-09
Age : 18
Location : Coding

PostSubject: Some Chat Stuff   Tue Nov 24, 2015 2:05 am

Okay, so, uh...i'ma show you some fun things you can do with your chat. More like, different things you can incorporate the chat into. Ignore everything I did in those support threads, i'm not such an advanced coder. Plus, that was when I gave up, don't do that xD

Anyway, on we go.

Screenshot Message:
 

Map Specific Message:
 

Hope you enjoy these small things. Not much, but, their actually quite nice instead of throwing an alert box in your users face, right?

Thankie for reading,
Slain

Big thanks to RedEye and Hyper for the assistance when I was confuzzled.


Last edited by Slain on Sat Nov 28, 2015 2:17 am; edited 3 times in total
Back to top Go down
http://aroessa.proboards.com
ЩΛЯ

avatar

Game username : ThisIsWar
Server : Eclipse
Female Posts : 373
Join date : 2015-03-02
Age : 17

PostSubject: Re: Some Chat Stuff   Wed Nov 25, 2015 8:27 pm

Thanks Slain, this is going to be very useful.
Back to top Go down
Vιrus
Very Helpful
Very Helpful
avatar

Game username : Virus
Server : Miskai
Female Posts : 486
Join date : 2014-09-05
Age : 17
Location : deep in an existential crisis

PostSubject: Re: Some Chat Stuff   Thu Nov 26, 2015 4:46 am

Love it! Thank you.
Back to top Go down
Slain Motionless

avatar

Game username : The-Hunted
Server : Aroessa
Female Posts : 431
Join date : 2014-05-09
Age : 18
Location : Coding

PostSubject: Re: Some Chat Stuff   Thu Nov 26, 2015 4:58 am

No problemo you two <3 Figured i'd share this, it's easy, but still nice to share about~
Back to top Go down
http://aroessa.proboards.com
Slain Motionless

avatar

Game username : The-Hunted
Server : Aroessa
Female Posts : 431
Join date : 2014-05-09
Age : 18
Location : Coding

PostSubject: Re: Some Chat Stuff   Sat Nov 28, 2015 2:20 am

Hehe, might share this one later on:


It's really easy as well.
Will work on some more free code edits if y'all want them.
Back to top Go down
http://aroessa.proboards.com
ЩΛЯ

avatar

Game username : ThisIsWar
Server : Eclipse
Female Posts : 373
Join date : 2015-03-02
Age : 17

PostSubject: Re: Some Chat Stuff   Sat Nov 28, 2015 8:32 am

Slain wrote:
Hehe, might share this one later on:


It's really easy as well.
Will work on some more free code edits if y'all want them.

Nice, but is there an option to turn it back on? Or are you talking about 'Welcome to the most boring map ever' xD
Back to top Go down
Slain Motionless

avatar

Game username : The-Hunted
Server : Aroessa
Female Posts : 431
Join date : 2014-05-09
Age : 18
Location : Coding

PostSubject: Re: Some Chat Stuff   Sun Nov 29, 2015 4:09 am

Talking bout removal of the tags. No, there is no option or command to turn it back on, the entire tag was removed~
Back to top Go down
http://aroessa.proboards.com
Furrest

avatar

Game username : Furrest(Everywhere Else) / Frozenfur (Only On DD)
Server : Mythical Realms (Owner/Creator)
Female Posts : 67
Join date : 2015-11-11
Age : 16
Location : United States

PostSubject: Re: Some Chat Stuff   Sun Aug 21, 2016 4:50 pm

Hello! I added this to my source how would I add another message for another map?
Back to top Go down
http://mythical-realms.freeforums.net
Slain Motionless

avatar

Game username : The-Hunted
Server : Aroessa
Female Posts : 431
Join date : 2014-05-09
Age : 18
Location : Coding

PostSubject: Re: Some Chat Stuff   Sun Aug 21, 2016 7:47 pm

Code:
mGui->getChatManager()->message("---" + mDef->getMapName(mWorld->getWorldName()) + "---");
 if (mDef->getMapName(mWorld->getWorldName()) == "Default") {
 mGui->getChatManager()->message("Welcome to the most boring map ever.");
 }
 }

From there, do something like this:

Code:
mGui->getChatManager()->message("---" + mDef->getMapName(mWorld->getWorldName()) + "---");
 if (mDef->getMapName(mWorld->getWorldName()) == "Default") {
 mGui->getChatManager()->message("Welcome to the most boring map ever.");
 }
if (mDef->getMapName(mWorld->getWorldName()) == "Other Map") {
mGui->getChatManager()->message("Welcome to this other mappy.");
}
 }
Back to top Go down
http://aroessa.proboards.com
Zilla

avatar

Game username : Zilla
Server : None
Female Posts : 102
Join date : 2015-10-25
Age : 15

PostSubject: Re: Some Chat Stuff   Sun Aug 21, 2016 9:12 pm

Very nice little feature Slain, I will diffidently be adding this into WoE. ^-^

Keep up the great work!
Back to top Go down
Furrest

avatar

Game username : Furrest(Everywhere Else) / Frozenfur (Only On DD)
Server : Mythical Realms (Owner/Creator)
Female Posts : 67
Join date : 2015-11-11
Age : 16
Location : United States

PostSubject: Re: Some Chat Stuff   Mon Aug 22, 2016 11:17 am

Slain wrote:
Code:
mGui->getChatManager()->message("---" + mDef->getMapName(mWorld->getWorldName()) + "---");
 if (mDef->getMapName(mWorld->getWorldName()) == "Default") {
 mGui->getChatManager()->message("Welcome to the most boring map ever.");
 }
 }

From there, do something like this:

Code:
mGui->getChatManager()->message("---" + mDef->getMapName(mWorld->getWorldName()) + "---");
 if (mDef->getMapName(mWorld->getWorldName()) == "Default") {
 mGui->getChatManager()->message("Welcome to the most boring map ever.");
 }
if (mDef->getMapName(mWorld->getWorldName()) == "Other Map") {
mGui->getChatManager()->message("Welcome to this other mappy.");
}
 }

It worked thank you aha!
Back to top Go down
http://mythical-realms.freeforums.net
Slain Motionless

avatar

Game username : The-Hunted
Server : Aroessa
Female Posts : 431
Join date : 2014-05-09
Age : 18
Location : Coding

PostSubject: Re: Some Chat Stuff   Wed Aug 24, 2016 11:53 pm

Furrest wrote:
Slain wrote:
Code:
mGui->getChatManager()->message("---" + mDef->getMapName(mWorld->getWorldName()) + "---");
 if (mDef->getMapName(mWorld->getWorldName()) == "Default") {
 mGui->getChatManager()->message("Welcome to the most boring map ever.");
 }
 }

From there, do something like this:

Code:
mGui->getChatManager()->message("---" + mDef->getMapName(mWorld->getWorldName()) + "---");
 if (mDef->getMapName(mWorld->getWorldName()) == "Default") {
 mGui->getChatManager()->message("Welcome to the most boring map ever.");
 }
if (mDef->getMapName(mWorld->getWorldName()) == "Other Map") {
mGui->getChatManager()->message("Welcome to this other mappy.");
}
 }

It worked thank you aha!

No problem dearest~
Back to top Go down
http://aroessa.proboards.com
Sponsored content




PostSubject: Re: Some Chat Stuff   

Back to top Go down
 
Some Chat Stuff
View previous topic View next topic Back to top 
Page 1 of 1

Permissions in this forum:You cannot reply to topics in this forum
Keeping I.T. Open :: DOWNLOADABLE CONTENT :: Programming Features-
Jump to: