Server Help

General Questions - Bong play when entering zone

Agurus - Mon Dec 12, 2005 11:12 pm
Post subject: Bong play when entering zone
Is it possible for a BONG to be played when entering a zone? Or is it only possible through bots?
Gus. - Mon Dec 12, 2005 11:18 pm
Post subject:
this is going out on a limb but perhaps have the bong included in the periodic enter message
Purge - Mon Dec 12, 2005 11:24 pm
Post subject:
Only through bots or ASSS since they both can detect whenever a player enters.

Having a bong like %2 placed in the GreetMessage in [Misc] will only result in the message actually saying the "%2", so that won't work.
Agurus - Mon Dec 12, 2005 11:40 pm
Post subject:
Yeah, it dosn't work on periodic messages either...
THE Lucifer - Tue Dec 13, 2005 1:25 am
Post subject:
Do you want EVERYONE to hear the bong, or just the entering player?
Agurus - Tue Dec 13, 2005 8:01 am
Post subject:
Entering player.
Chambahs - Tue Dec 13, 2005 10:43 am
Post subject:
just do it through bots/asss, i did it through asss, so it cant be that hard icon_razz.gif
THE Lucifer - Tue Dec 13, 2005 3:44 pm
Post subject:
Have the bot/ASSS pm them with sound, sound-carrying lvz, or a bong that the zone force them to d/l.
Purge - Tue Dec 13, 2005 11:19 pm
Post subject:
In MERVBot, it's pretty simple.

spawn.cpp:
Code: Show/Hide
case EVENT_PlayerEntering:
{
         Player *p = (Player*)event.p[0];
                       
         String s;
         s +="Welcome ";
         s +=SND_ATT;      // this is the bong packet
         s +="to my zone!";
         sendPrivate(p, s.msg);
}

Bak - Wed Dec 14, 2005 1:39 am
Post subject:
You sure that will work purge?

Plus that would be arena not zone icon_smile.gif

Only ASSS can determine when a player is entering the zone.
Cyan~Fire - Wed Dec 14, 2005 1:00 pm
Post subject:
Would not work, Purge.
Code: Show/Hide
sendPrivate(p, SND_ATT, "Welcome to my zone!");

Purge - Wed Dec 14, 2005 11:19 pm
Post subject:
Ah, true. Then I guess what I just wrote up there will output the bong # instead of the actual sound in the message?
Bak - Thu Dec 15, 2005 12:04 am
Post subject:
yes
Agurus - Thu Dec 15, 2005 8:14 pm
Post subject:
I am not a bot man (yet), think someone could whip up something similar (w/Ini?):

BOT>/(pm's player this) TEX TEXT TEXT *Bong*

Ini could have like:

#What bot pm's
Hello welcome to my zone!

#Bong Number played
%##

Somethign like that
Bak - Thu Dec 15, 2005 9:42 pm
Post subject:
close, you made the same mistake purge did.

You can not put the bong sound in the message, or you'll just get a message like "Hello Friend %15" with no sound.

use Cyan's way instead

Code: Show/Hide
int bongNumber = getBongNumber();
char* message = getMessage();

sendPrivate(p, bongNumber, message);

Anonymous - Sat Dec 24, 2005 2:50 am
Post subject: hey
hey agurus its me homie i put a bong message through log time data u can make a very very easy bong but there is a mess up in data u have to put

int bongNumber = getBongNumber(); //the comma before bong
char* message = getMessage();

sendPrivate(p, bongNumber, message); //and message has to be with a *
next to it for it too reach the player and a time ()has to be entered as well to come on time to say as the player enters the zone on lhv.txt
Solo Ace - Sat Dec 24, 2005 2:59 am
Post subject:
Err? Why did you just quote the code and made some stupid comments about it?
All times are -5 GMT
View topic
Powered by phpBB 2.0 .0.11 © 2001 phpBB Group