Register forum user name Search FAQ

Gammon Forum

Notice: Any messages purporting to come from this site telling you that your password has expired, or that you need to verify your details, confirm your email, resolve issues, making threats, or asking for money, are spam. We do not email users with any such messages. If you have lost your password you can obtain a new one by using the password reset link.

Due to spam on this forum, all posts now need moderator approval.

 Entire forum ➜ SMAUG ➜ Running the server ➜ Player Killing - immortals only?

Player Killing - immortals only?

It is now over 60 days since the last post. This thread is closed.     Refresh page


Pages: 1  2  3 

Posted by Reshad   (61 posts)  Bio
Date Reply #30 on Fri 04 Feb 2005 12:55 PM (UTC)
Message
a fight program
Top

Posted by David Haley   USA  (3,881 posts)  Bio
Date Reply #31 on Fri 04 Feb 2005 03:41 PM (UTC)
Message
Why did you put it into a fight program? Did you find the program that is run when new players enter the game for the first time? or leave the academy?

David Haley aka Ksilyan
Head Programmer,
Legends of the Darkstone

http://david.the-haleys.org
Top

Posted by Meerclar   USA  (733 posts)  Bio
Date Reply #32 on Fri 04 Feb 2005 08:01 PM (UTC)
Message
Ok, here's a quickie rundown on the most useful mprog types

fight - only works when the mob is fighting

enter - works when someone enters the room from a certain direction

entall - works from any entrance

exit - when someone leaves in a certain direction

exall - exit for any direction

act - works when a certain action is performed

speech - works on trigger phrase


Now, I'll admit a certain lack of knowledge regarding room progs but I can't imagine them having the same versatility of mprogs so I wouldn't use em in most cases anyway.

That said, if youve put the prog to turn everyone killers on a hidden mob as a fight program, it's never going to work. You need to use either enter or exit progs to get the job done or put the fight pog on *every* mob in your academy that is meant to be killed and pray the players don't skip them entirely like theyre so very fond of doing given half a chance.

Meerclar - Lord of Cats
Coder, Builder, and Tormenter of Mortals
Stormbringer: Rebirth
storm-bringer.org:4500
www.storm-bringer.org
Top

Posted by Reshad   (61 posts)  Bio
Date Reply #33 on Fri 04 Feb 2005 09:06 PM (UTC)
Message
I made a program in the starting room, this is the program:

exa_prog

And putted this in it:
mppkset $n yes


When I login with 2 accounts and I try to PK one of my chars it says: The gods have not allowed pking in this area...

Any other solutions?
Top

Posted by Zeno   USA  (2,871 posts)  Bio
Date Reply #34 on Fri 04 Feb 2005 10:15 PM (UTC)
Message
The area is set with the nopkill flag. Toggle it off:

aset <area filename> flags nopkill

That should solve the problem.

Zeno McDohl,
Owner of Bleached InuYasha Galaxy
http://www.biyg.org
Top

Posted by Frobozz   (75 posts)  Bio
Date Reply #35 on Fri 04 Feb 2005 10:41 PM (UTC)
Message
I still think the easiest solution to this would be to get rid of the attacker flag, edit do_kill and do_murder to take out the ifchecks for pk, and poof! You have a pk mud.
Top

Posted by David Haley   USA  (3,881 posts)  Bio
Date Reply #36 on Fri 04 Feb 2005 11:47 PM (UTC)
Message
You actually should change is_safe, because you can start fights without starting them with kill/murder by using spells...

David Haley aka Ksilyan
Head Programmer,
Legends of the Darkstone

http://david.the-haleys.org
Top

Posted by Reshad   (61 posts)  Bio
Date Reply #37 on Wed 16 Mar 2005 03:29 PM (UTC)
Message
Thanks alot for your trying to help me. I already started building, but I have a question, if I start building in the mean-while, and then later on, someone creates it for me so that you can PK? For money, then must I rebuild everything?
Top

Posted by Robert Powell   Australia  (367 posts)  Bio
Date Reply #38 on Thu 17 Mar 2005 02:44 AM (UTC)
Message
No, you will not have to build everything again.

Just a guy having a bit of fun. Nothing more, nothing less, I do not need I WIN to feel validated.
Top

Posted by Zeno   USA  (2,871 posts)  Bio
Date Reply #39 on Thu 17 Mar 2005 03:33 PM (UTC)
Message
Are you sure? Perhaps I do not understand the question. If you are building an area and someone changes is_safe, you don't need to start the area over.

Zeno McDohl,
Owner of Bleached InuYasha Galaxy
http://www.biyg.org
Top

Posted by Reshad   (61 posts)  Bio
Date Reply #40 on Thu 17 Mar 2005 07:44 PM (UTC)
Message
Oke, thanks :)

*Starts counting money and looks at Ksilyan*
Top

Posted by Tseris   (98 posts)  Bio
Date Reply #41 on Wed 17 Oct 2007 06:33 AM (UTC)
Message
I was looking through the nanny functions in comm.c because Id like to do this same thing - have everyone be pkillers from the get go. Found this:

/*
* Added by Narn. Start new characters with autoexit and autgold
* already turned on. Very few people don't use those.
*/
xSET_BIT( ch->act, PLR_AUTOGOLD );
xSET_BIT( ch->act, PLR_AUTOEXIT );

/*

Couldnt I just set the pkiller flag right here? What would be the proper way to write that?
Top

Posted by David Haley   USA  (3,881 posts)  Bio
Date Reply #42 on Wed 17 Oct 2007 07:07 AM (UTC)
Message
It'd be something like xSET_BIT(ch->act, pkflag), whatever the pkflag is. PLR_PK? (don't remember)

David Haley aka Ksilyan
Head Programmer,
Legends of the Darkstone

http://david.the-haleys.org
Top

Posted by Zeno   USA  (2,871 posts)  Bio
Date Reply #43 on Thu 18 Oct 2007 03:26 AM (UTC)
Message
Wasn't it the deadly flag?

Zeno McDohl,
Owner of Bleached InuYasha Galaxy
http://www.biyg.org
Top

Posted by Tseris   (98 posts)  Bio
Date Reply #44 on Thu 18 Oct 2007 03:55 AM (UTC)
Message
Went with

xSET_BIT( ch->act, PCFLAG_DEADLY );

it compiled fine so I thought that was it but then I made a new char and it didnt start as deadly and still had to manually set it that way with my admin. Ill keep looking and keep ya posted.
Top

The dates and times for posts above are shown in Universal Co-ordinated Time (UTC).

To show them in your local time you can join the forum, and then set the 'time correction' field in your profile to the number of hours difference between your location and UTC time.


110,759 views.

This is page 3, subject is 3 pages long:  [Previous page]  1  2  3 

It is now over 60 days since the last post. This thread is closed.     Refresh page

Go to topic:           Search the forum


[Go to top] top

Information and images on this site are licensed under the Creative Commons Attribution 3.0 Australia License unless stated otherwise.