Server Help

General Questions - biller coding

BDwinsAlt - Wed Jul 21, 2004 1:08 am
Post subject: biller coding
ok if anyone knows how to or has the code to make it when u enter a zone on your biller it says Welcome to the biller blah blah blah type ?man for help, can you tell me what file to put it in and where to write in my own thing to say .
I have Catid's SSB1.1j
If you want to write it in yourself i would like it to say

"Welcome to the SSBD Biller. Please type ?man for help. "

Please help. Explody wasn't that nice about it in the past grr. lol biggrin.gif
CypherJF - Wed Jul 21, 2004 3:31 am
Post subject:
rotfl (about the comment about explody)... the src is included w/ the biller... but i'd locate the code area where it tells a user whether they have messages or not icon_wink.gif
MS-DOS - Wed Jul 21, 2004 8:42 am
Post subject:
icon_lol.gif CypherJF.
BDwinsAlt why you want a welcome message, if you cant even edit it?
Solo Ace - Wed Jul 21, 2004 9:14 am
Post subject:
He can edit it if he knows where the message is in the code, meh, that can't be hard to find out.

Too bad I don't feel like doing it. icon_smile.gif
BDwinsAlt - Wed Jul 21, 2004 2:29 pm
Post subject:
lol i think i can find it from here thanks some of you. tongue.gif lol
Contempt+ - Thu Jun 02, 2005 11:51 pm
Post subject:
Well, I've been looking, and I can't find it.

Can someone tell me what the code line is?

it's in the command file, right?
CypherJF - Fri Jun 03, 2005 12:07 am
Post subject:
Can you stop posting in topics that died a year ago?

You just need to locate where the biller authenticates the player onto the biller - find the block that allows the OK player in and send the message.
Contempt+ - Fri Jun 03, 2005 12:11 am
Post subject:
Umm, don't you yell at people for creating new threads?

I continued in this one so that I didn't get yelled at.. Sorry.. I'll just start making new threads for everything that I ask
CypherJF - Fri Jun 03, 2005 1:22 am
Post subject:
fine. in rpc.h you should be able to locate the line:

printf("%i - New player entering: %s\n", Packet->Source->ScoreID, player->Name);

Add..

user->SendArena("welcome!");

above it.... and it should send 'welcome' when they login.
Contempt+ - Fri Jun 03, 2005 1:32 am
Post subject:
Thanks
Contempt+ - Wed Jun 08, 2005 5:55 am
Post subject:
Umm, I tried that, and it didn't work. tried about and below it, as well as:

player->SendArena("welcome!");

What's the correct code, and where to put it, or what am I doing wrong?
CypherJF - Wed Jun 08, 2005 1:49 pm
Post subject:
No. The code I gave you ^-^ is correct - re-read it and try it again.
Contempt+ - Wed Jun 08, 2005 2:00 pm
Post subject:
I did. I tried it two ways
Code: Show/Hide

printf("%i - New player entering: %s\n", Packet->Source->ScoreID, player->Name);
user->SendArena("Welcome to the SSD Biller. Type ?man for a list of commands");


Code: Show/Hide

user->SendArena("Welcome to the SSD Biller. Type ?man for a list of commands");
printf("%i - New player entering: %s\n", Packet->Source->ScoreID, player->Name);

CypherJF - Wed Jun 08, 2005 3:21 pm
Post subject:
Dunno, it works fine for me - as I added it in while I was retrofiting the biller to use a MySQL database - and it worked then. :shrug:
Contempt+ - Wed Jun 08, 2005 3:24 pm
Post subject:
Hmm, ok, thanks Cypher for helping
CypherJF - Wed Jun 08, 2005 3:35 pm
Post subject:
Oh rather, sorry. That message will only appear when they are new to the biller - not when they're just logging in. That's why. icon_smile.gif Find the IF-THEN statement where it checks to validate a normal - existing player. Then add it before/after it.
Purge - Wed Jun 08, 2005 3:36 pm
Post subject:
Code: Show/Hide
[Comms]
// Should new users be asked to consider?
AskNewUsers=0


In subbill.ini, make sure that's 0 so the SubSpace registration won't come up in ?man. icon_smile.gif
CypherJF - Wed Jun 08, 2005 3:47 pm
Post subject:
here's the sniplet from my biller...

Code: Show/Hide
LUserNode * user = new LUserNode(Packet->Source, player, NULL, GetLong(Packet->Message, 70));
Packet->Source->UserList.Append(user);

user->SendArena("welcome!");
user->CheckMsg(5000);  // sends a message listing when they enter.

printf("%i - New player entering: %s\n", Packet->Source->ScoreID, player->Name);


Is that what your code looks like?
Contempt+ - Wed Jun 08, 2005 4:00 pm
Post subject:
Code: Show/Hide

LUserNode * user = new LUserNode(Packet->Source, player, NULL, GetLong(Packet->Message, 70));
         Packet->Source->UserList.Append(user);
         user->SendArena("Welcome to the SSD Biller. Type ?man for a list of commands");
         user->CheckMsg(10000);
         
         printf("%i - New player entering: %s\n", Packet->Source->ScoreID, player->Name);
         user->SendArena("Welcome to the SSD Biller. Type ?man for a list of commands");

CypherJF - Wed Jun 08, 2005 4:04 pm
Post subject:
And it doesn't work?
Contempt+ - Wed Jun 08, 2005 4:13 pm
Post subject:
No..

Should:
user->CheckMsg(10000);

be

user.)CheckMsg(5000);?

Change 10000 to 5000?

EDIT:

I added this, so that I didn't have to make a new post.

I copied what you had cypher, and pasted it in my src, compiled it, and ran it, and it still didn't work.
Confess - Wed Jun 08, 2005 4:30 pm
Post subject:
If you are going to create a biller, make something unique, dont copy biller formats like the tsunade, versettian, and SSI Biller. Copying a format is stealing, ya know?
Contempt+ - Wed Jun 08, 2005 4:40 pm
Post subject:
Confess, I don't give a crap what you say. I'm not going to listen to a thing that you say, I'm editing/making my own biller. I'm using catid's biller to edit, and that's not stealingl.
Purge - Wed Jun 08, 2005 5:37 pm
Post subject:
The ignore button is cool. sa_tongue.gif
Contempt+ - Wed Jun 08, 2005 5:37 pm
Post subject:
Oh, I forgot about that, thanks
Confess - Wed Jun 08, 2005 5:39 pm
Post subject:
This coming from the guy that was hosting a zone that was obviously ripped off of Ground Warfare... As in, stolen.

Using someone elses format is stealing, whether you like it or not. Perhaps ill have to use an anology for you.

I decide to make a zone, but i dont want to be original and so i decide to rip some gfx off of another zone, is this stealing? Yes. Tell me no, and you are a fool. Although you are using the Subgame software, you are using gfx from another zone, which makes the zone STOLEN.

It is amazing how people have decided that taking something that doesnt belong to you isnt stealing, but mearily 'barrowing'.

I betcha that after you read this post, you are going to continue fighting saying that 'barrowing' someone elses ?man format or 'Welcome' format is not stealing, although the owners did not give you permission. You are most likely going to try and somehow take this post out of context and flame me, but to be honest, I could care less. I am here only to state the truth, and nothing but the truth.

Dont try to fool yourself, if you know something is wrong, simply dont do it.
Contempt+ - Wed Jun 08, 2005 5:43 pm
Post subject:
Anyone know what's going?
ExplodyThingy - Wed Jun 08, 2005 5:55 pm
Post subject:
I'd just like to say that I told BDwins to learn C++ enough to recognize the proper code, then copy and paste it. The location I told BDwins to look was to find where it checks to send ?messages. This is the only way to make it a true greet message, but sadly does not work all the time. This method works by waiting for a certain ammount of time after the login, if the login process is paused in any way such as lag or news, then it will be skipped.

Anyway, confess was saying that if you do the same thing as an other network, its as good as stealing. Its just as unoriginal and is the exact ssame thing. While its not a new and break through idea it doesnt really constitute theivery. So in short, shut up will ya? Its not important.
50% Packetloss - Wed Jun 08, 2005 5:55 pm
Post subject:
My money is on that he isn't compiling the code. He is probably changing the source file and then expecting the executable to "know" that he busted open his notepad program and changed 1 line of code.
Let me put it this way, it is IMPOSSIBLE that changing that line of code and have it not work, unless you are doing something wrong. The people here know how to code and you are wasting thier time. Really, do you think that changing the welcoming message will attract people to your biller? No one gives a shit.
Contempt+ - Wed Jun 08, 2005 6:07 pm
Post subject:
Couple of things..

Explody: Are you telling me to shut up, or confess?

50%: I know how to edit and compile the src. I'm not that stupid. I've edited the biller's ?man command list, and it's working just fine. No, I don't think that changing the welcoming message will attract more people. I would just like to know how to put it in, and get it to work correctly, so that I know how to do it in the future.
Purge - Wed Jun 08, 2005 6:24 pm
Post subject:
We're all just helping eachother out. icon_wink.gif
Contempt+ - Wed Jun 08, 2005 6:41 pm
Post subject:
Or trying to.. Cause I still don't have that damn welcoming message working..
Contempt+ - Thu Jun 09, 2005 2:21 am
Post subject:
Anyone know why it won't work?
Maverick - Thu Jun 09, 2005 3:36 am
Post subject:
CypherJF wrote:
Oh rather, sorry. That message will only appear when they are new to the biller - not when they're just logging in. That's why. icon_smile.gif Find the IF-THEN statement where it checks to validate a normal - existing player. Then add it before/after it.

Contempt+, make sure you have pasted the snippet of Cypher in the right area of your code - not on the same place as cypher's original code snipped.
Contempt+ - Fri Jun 10, 2005 1:36 am
Post subject:
Well, I've tried a few different places where the code mentions players entering, and it hasn't worked.

Does anyone have any clue where to add it?
Anonymous - Fri Jun 10, 2005 8:35 am
Post subject:
I have not been inside this part of Catid's code for a long time so I will work it out based on my memory of how he works, and tell you what I did or would have done.

Search any part of the string pertaining to new messages, such as "You have " or " new messages." Obviously you cant search out the entire string as that would require knowing exactly how the variables are used. This will leave you in one of two possible scenarios.

If you find yourself within a function designed to check if a player has new messages, search out where that function is called. Exactly there, or outside of any conditional statements that may block it, place the greet message code.

Else of you find yourself inside one gigantic function for logins as Catid is prone to doing, then youre also going to be about 10 levels of brackets deep. Work back untill you find the start of the conditional that checks for messages. Just before this line, place the greet message code.

You can write your code in several ways. I added my own function that was passed a Player parameter. It read a value out of a cfg and transmitted it to the player.

Alternately search out the text send to a banned player and work back from there.
Contempt+ - Sun Jun 12, 2005 5:14 am
Post subject:
Ok.. I've tried just about ever place that has "player entering", "new player", "new player connected", "player connected".. And I still didn't get it to work..

This is really starting to tick me off. Does anyone know what I'm doing wrong?
Mr Ekted - Sun Jun 12, 2005 7:05 am
Post subject:
I'll try the obvious. You are editing the code and compiling. Are you linking? Are you actually running the new executable that you are building or the original one?
Muskrat - Sun Jun 12, 2005 11:45 am
Post subject:
Contempt+ wrote:
Ok.. I've tried just about ever place that has "player entering", "new player", "new player connected", "player connected"..


Have you even tried looking for the new messages code like has been suggested many times?
Contempt+ - Mon Jun 13, 2005 11:41 am
Post subject:
Yes I have. I also asked people online, but they didn't know quite exactly.

But I finally got it. Thanks guys
Maverick - Mon Jun 13, 2005 2:00 pm
Post subject:
well, in what part should the code be then and what did you do wrong? icon_smile.gif
Contempt+ - Mon Jun 13, 2005 2:19 pm
Post subject:
It's in the dbase.h, and you gotta find where it messages you that you have a new message. See, people told me that it was near the messaging code, but they didn't tell me what file.

And I was putting it on the wrong line once I found it.
All times are -5 GMT
View topic
Powered by phpBB 2.0 .0.11 © 2001 phpBB Group