Jump to content

[SRC] Adding a new Chat


darkmeistersp

Recommended Posts


  • Group:  Members
  • Topic Count:  10
  • Topics Per Day:  0.00
  • Content Count:  392
  • Reputation:   47
  • Joined:  11/18/11
  • Last Seen:  

Question...

Would the code stop working if I replace the "trade" related works with "market" ?

Depends in where exactly you want "market" to be displayed. You could just change it in msg_athena.conf.

956: %s :Trading: %s

to

956: %s :Market: %s

And it will display same as in the picture in the first post. Just with the word "Market" instead of Trading.

Now if you want to replace everysingle code, which is pointless since you're not gonna display the code. You can simply edit it, just make sure everything fits well ;)

Edited by Noah
  • Upvote 1
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  39
  • Topics Per Day:  0.01
  • Content Count:  386
  • Reputation:   15
  • Joined:  11/17/11
  • Last Seen:  

Woah! i've been looking for this since, eA doesn't have like this? or might i'm wrong? looking forward in this Thread.

Very nice! i'll use it for my 'Upcoming'. thanks for this.

Regards,

Mindless

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  10
  • Topics Per Day:  0.00
  • Content Count:  392
  • Reputation:   47
  • Joined:  11/18/11
  • Last Seen:  

eA doesn't have like this? or might i'm wrong? looking forward in this Thread.

O_o I think it does as it explains in the #1 post (@main) it's just an exact replica, just that it displays "trading" instead of "main", although you have to activate @main before using @trading, so what I did was just edit @main since not many servers really use it. I made my own edit, turned out very nice ;) I'll may post it after a few days.

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  15
  • Topics Per Day:  0.00
  • Content Count:  217
  • Reputation:   18
  • Joined:  11/20/11
  • Last Seen:  

I just wanted it to say Market instead of Trading in the announcement. So I guess I could do it in the msg_athena. Thanks Noah. ;)

Link to comment
Share on other sites

  • 1 month later...

  • Group:  Members
  • Topic Count:  8
  • Topics Per Day:  0.00
  • Content Count:  65
  • Reputation:   13
  • Joined:  01/08/12
  • Last Seen:  

its just the copy paste of the @main just change everything in main to smthing which you want....I had created @vending and @recruit....

  • Upvote 1
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  25
  • Topics Per Day:  0.01
  • Content Count:  509
  • Reputation:   80
  • Joined:  11/20/11
  • Last Seen:  

nice idea

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  3
  • Topics Per Day:  0.00
  • Content Count:  107
  • Reputation:   17
  • Joined:  12/23/11
  • Last Seen:  

Very cool :(

Thanks for share it :(

Link to comment
Share on other sites

  • 3 weeks later...

  • Group:  Members
  • Topic Count:  8
  • Topics Per Day:  0.00
  • Content Count:  43
  • Reputation:   1
  • Joined:  01/20/12
  • Last Seen:  

I made two channels, Support and Trading, and when I whisper to both of them it isn't the same as Main. In this case whispering to both support and trading respectively would bring up the PM box. Is there anyway to fix this?

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  2
  • Topics Per Day:  0.00
  • Content Count:  13
  • Reputation:   0
  • Joined:  01/19/12
  • Last Seen:  

Only works with @main on ?

Link to comment
Share on other sites

  • 4 weeks later...

  • Group:  Members
  • Topic Count:  25
  • Topics Per Day:  0.01
  • Content Count:  251
  • Reputation:   20
  • Joined:  12/22/11
  • Last Seen:  

it would be nice if u make a patch for rAthena Trunk 15625

:)

btw thanks

Link to comment
Share on other sites

  • 5 months later...

  • Group:  Members
  • Topic Count:  318
  • Topics Per Day:  0.07
  • Content Count:  925
  • Reputation:   32
  • Joined:  12/05/11
  • Last Seen:  

anyone can give example screen shot?

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  111
  • Topics Per Day:  0.02
  • Content Count:  573
  • Reputation:   20
  • Joined:  11/19/11
  • Last Seen:  

Hi there :)

I applied the patch and i got lot's of errors when compiling. here it is


3>c:\ragnarok files\rathena\src\char\inter.c(740): error C2181: illegal else without matching if
1>c:\ragnarok files\rathena\src\map\clif.c(5536): error C2084: function 'void clif_TradingChatMessage(const char *)' already has a body
1>          c:\ragnarok files\rathena\src\map\clif.h(565) : see previous definition of 'clif_TradingChatMessage'
3>c:\ragnarok files\rathena\src\char\inter.c(742): error C2181: illegal else without matching if

how to fix these errors ?

SlashGeeGee

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  12
  • Topics Per Day:  0.00
  • Content Count:  37
  • Reputation:   2
  • Joined:  03/23/12
  • Last Seen:  

Hi there , maybe i can help you with something , i add this mod manually , and got some bug , but now fixed :)

Here you go

Open src>char_sql>inter.c

Find :

else if(!strcmpi(w1,"main_chat_nick"))
  safestrncpy(main_chat_nick, w2, sizeof(main_chat_nick));

Add Below :

else if(!strcmpi(w1,"trading_chat_nick"))
  safestrncpy(trading_chat_nick, w2, sizeof(trading_chat_nick));

From darkmeistersp , "Repeat the steps 7, 8 and 9 with the files char.c, inter.c and inter.h that are located in src/char_sql/"

but from char_sql/inter.c its not the same with char/inter.c

*darkmeistersp : sorry if im wrong , just helping because already tried and working , CMIIW

*btw nice script :P

Edited by playgron
  • Upvote 1
Link to comment
Share on other sites

  • 2 months later...

  • Group:  Members
  • Topic Count:  76
  • Topics Per Day:  0.02
  • Content Count:  461
  • Reputation:   61
  • Joined:  08/28/12
  • Last Seen:  

Hi guys,

I have a problem. If I type the command @trading off, it will still appear.

Can anyone help me?

Thanks in advanced.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...