"Special Spellbooks"

Forum where anything UOX3-related goes - including, but not limited to: newbie-support, ideas, general questions, comments, etc and-so-forth.
Post Reply
GhostTyper
UOX3 Neophyte
Posts: 26
Joined: Sun Sep 18, 2005 2:00 pm
Has thanked: 0
Been thanked: 0
Contact:

"Special Spellbooks"

Post by GhostTyper »

I'm playing UO on a freeshard on which you can believe in a god. addicted to the god you're belieaving in, your'e having a second spellbook. in this spellbook are "religion oriented" spells. for example: summon a daemon, etc...

my question is: how can i realize this using uox3 (these second spellbooks)
and: how can i realize some religions by itself? for example: spawning npc's attacking only human players not belonging to a specified religion.

thanks, and sorry for my bad english.
User avatar
Xuri
Site Admin
Posts: 3704
Joined: Mon Jun 02, 2003 9:11 am
Location: Norway
Has thanked: 48 times
Been thanked: 8 times
Contact:

Post by Xuri »

Creating such "special spellbooks" is quite possible. All you'd do is make a book-item and assign a javascript to it which when used will open a custom-designed gump with buttons in it for choosing spells to cast.

Of course, you'd have to both design the actual gump as well as the spells you wanted to cast.

As for realizing your idea of religions where you could be spawning npcs attacking only human players not belonging to a specific religion... that's harder. You have the ability to script ai-specific stuff for NPCs, the only problem is you cannot currently script "some" ai only - if you use the onAISliver event, as it's called, you'll have to recreate the entire AI for those specific NPCs, including movement, combat, etc. :|
-= Ho Eyo He Hum =-
GhostTyper
UOX3 Neophyte
Posts: 26
Joined: Sun Sep 18, 2005 2:00 pm
Has thanked: 0
Been thanked: 0
Contact:

Post by GhostTyper »

is there any example script for such an ai, or for a "custom-designed gump" and for interacting with the buttons pressed in it?

thanks, and sorry for my bad english.
User avatar
Xuri
Site Admin
Posts: 3704
Joined: Mon Jun 02, 2003 9:11 am
Location: Norway
Has thanked: 48 times
Been thanked: 8 times
Contact:

Post by Xuri »

There are currently no example scripts for custom AIs. For a "custom-designed gump" check out the following thread:
http://uox3.org/forums/viewtopic.php?p=2548

Check out the UOX3 JS Docs for explanations of the various events and methods used in the example:
https://www.uox3.org/jsdocs/index.html
-= Ho Eyo He Hum =-
Post Reply