[Home] [Downloads] [Search] [Help/forum]

Gammon Software Solutions forum

See www.mushclient.com/spam for dealing with forum spam. Please read the MUSHclient FAQ!

[Folder]  Entire forum
-> [Folder]  Dawn of Time
. -> [Folder]  Configuration
. . -> [Subject]  Summoning a mob...

Home  |  Users  |  Search  |  FAQ
Username:
Register forum user name
Password:
Forgotten password?
(New message)
Subject: Summoning a mob...
Name:
Your forum user name.
Register forum user name
Password:
Your forum password.
Forgotten password?
Message:
Message to be posted (in English, please).
Forum codes:
Check this if your message uses 'forum codes' or templates (auto-detected for new posts).
Forum codes Templates

Save this message ...


Subject review (reverse sequence)

Posted by Kalahn   United Kingdom  (138 posts)  [Biography] bio   Moderator
Date Fri 10 May 2002 06:41 AM (UTC)  quote  ]
Message
Well spell_summon() has code in it which can be used to find and transfer a mob into the current room. Copy the spell to a new name, and add in code which performs your level checks.

Depending on how you exactly want to do things in terms of the fighting, changes the best way to go about things. If you want this spell to be cast while the player is fighting who will summon a mob replacement. You could make it so when the mob is transfered into the room within the same spell function starts attaching who ever ch->fighting is set to. Use something like one_hit() or something to do this. You may want to make the victim change target it they are an NPC - up to you.

Then stop the player fighting if this is relevant - look at do_peace() for a command which stops everyone in the room fighting.

Good luck,

- Kal

Kalahn
Developer of the Dawn of Time codebase
http://www.dawnoftime.org/
[Go to top] top

Posted by Xavaier   USA  (26 posts)  [Biography] bio
Date Thu 09 May 2002 07:08 PM (UTC)  quote  ]
Message
How could I make a spell summon a mob to fight inplace of the player that summoned it and not attack that player.. also, to make this more complex, I want to set the npc that the player can call based on their level. ie: John is level 10 so he can only call an NPC which was specified for levels 1-10 .. am I making any sense? hope so hehe
thanks!
any questions about what I'm trying to say (cuz I know it's kinda garbled) Xavaier@Xavaier.com
[Go to top] 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.


1,977 views.

[Reply to this subject]  Reply to this subject   [New subject]  Start a new subject   [Refresh] Refresh page

Go to topic:           Search the forum


[Go to top] top

[Home]

Written by Nick Gammon - 5K

Comments to: Gammon Software support
[RH click to get RSS URL] Forum RSS feed ( http://www.gammon.com.au/rss/forum.xml )

[Best viewed with any browser - 2K]    [Internet Contents Rating Association (ICRA) - 2K]    [Web site powered by FutureQuest.Net]