Login
User Name:

Password:



Register
Forgot your password?
Vote for Us!
tintin++ ogg sound player script for linux
Author: Robert Smith
Submitted by: Vladaar
6Dragons ogg Soundpack
Author: Vladaar
Submitted by: Vladaar
6Dragons 4.4
Author: Vladaar
Submitted by: Vladaar
LoP 1.46
Author: Remcon
Submitted by: Remcon
LOP 1.45
Author: Remcon
Submitted by: Remcon
Users Online
CommonCrawl, Yandex, DotBot

Members: 0
Guests: 12
Stats
Files
Topics
Posts
Members
Newest Member
481
3,739
19,386
619
Alexander
Today's Birthdays
There are no member birthdays today.
Related Links
» SmaugMuds.org » General » Smaug Snippets » New Arena snippet
Forum Rules | Mark all | Recent Posts

New Arena snippet
< Newer Topic :: Older Topic >

Pages:<< prev 1 next >>
Post is unread #1 May 20, 2009, 5:47 pm   Last edited May 20, 2009, 6:22 pm by Hanaisse
Go to the top of the page
Go to the bottom of the page

Hanaisse
Magician
GroupMembers
Posts196
JoinedNov 25, 2007

Just a quick question. I picked up a snippet (I thought it was from here but I can't find it anymore) called "newarena", an automated arena snippet for Smaug. In the instructions it says;

You also have to set the room flags in the limbo.are for the arena.
The arena bit is 67108864

Can any of you Smaug'ers tell me what 67108864 means in terms of room flags?

EDIT: Nevermind, I understand now it's saying 'arena' is a new room flag and that is the bitvector for it. Ok, next question... how do I create this new room flag?
       
Post is unread #2 May 20, 2009, 7:13 pm   Last edited May 20, 2009, 7:15 pm by ayuri
Go to the top of the page
Go to the bottom of the page

ayuri
Magician
GroupMembers
Posts239
JoinedJun 13, 2008

In an effort to sound stupid here.
If your using a newer release of smaug the arena is done for you in game as far a r_flags go. A quick look in build.c shows:
const char *const r_flags[] = {
   "dark", "death", "nomob", "indoors", "lawful", "neutral", "chaotic",
   "nomagic", "tunnel", "private", "safe", "solitary", "petshop", "norecall",
   "donation", "nodropall", "silence", "logspeech", "nodrop", "clanstoreroom",
   "nosummon", "noastral", "teleport", "teleshowdesc", "nofloor",
   "nosupplicate", "arena", "nomissile", "r4", "r5", "prototype", "dnd", "bfs_mark"
};

However, any support code to go along with it may or may not be there.

As to how you'd add a new r_flag for arena (if you need it) - what I've always done in the past is copy one, find everything that it is related to and just drop the new one in the right spot. In the above, if I was going to add a new room flag for 'sanitary' I'd add it to the r_flags part so it would look like "bfs_mark", "sanitary". That's pretty much it except for any extra support code you want to be used by said flag, or any helpfiles in your game.

As to the value of the bit, I'm not sure if the bit will be the same on newer versions of smaug. That is beyond my abilities. I hope this post helps some. And if I've gone down the wrong path, I give anyone permission to smack me (but not to hard).

**EDIT** Since I'm a SWFOTE freak... swfotefuss1.4 has the newarena code in it.
ayuri
       
Post is unread #3 May 20, 2009, 7:35 pm
Go to the top of the page
Go to the bottom of the page

Hanaisse
Magician
GroupMembers
Posts196
JoinedNov 25, 2007

Oh! You're right, arena room flag is already in build.c (I just didn't know where to look for it) and I've set a few rooms so far with it, but no, none of the support code/commands are there (in SmaugFUSS 1.9) for using an auto-arena. Onward I go to add it with fingers crossed.

Tyvm ayuri, that was very helpful :)
       
Pages:<< prev 1 next >>