The following warnings occurred:
Warning [2] Use of undefined constant SAPI_NAME - assumed 'SAPI_NAME' (this will throw an Error in a future version of PHP) - Line: 3388 - File: inc/functions.php PHP 7.4.33-nmm7 (Linux)
File Line Function
/inc/functions.php 3388 errorHandler->error
/showthread.php 116 build_archive_link
Warning [2] Use of undefined constant IN_ARCHIVE - assumed 'IN_ARCHIVE' (this will throw an Error in a future version of PHP) - Line: 3331 - File: inc/functions.php PHP 7.4.33-nmm7 (Linux)
File Line Function
/inc/functions.php 3331 errorHandler->error
/inc/functions.php 3324 build_forum_breadcrumb
/showthread.php 195 build_forum_breadcrumb
Warning [2] Use of undefined constant IN_ARCHIVE - assumed 'IN_ARCHIVE' (this will throw an Error in a future version of PHP) - Line: 3331 - File: inc/functions.php PHP 7.4.33-nmm7 (Linux)
File Line Function
/inc/functions.php 3331 errorHandler->error
/showthread.php 195 build_forum_breadcrumb






Post Reply 
 
Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Totally stumped on the "New" spells.
Author Message
Rayvolution
Journeyman
*

Posts: 135
Likes Given: 0
Likes Received: 2 in 2 posts
Joined: Jul 2012
Reputation: 1

Aetharia

Post: #5
RE: Totally stumped on the "New" spells.
I eventually ended up writing my own script (before I realized you gave me a darned good example to go by! lol) It looks like we used similar methods, but yours looks a lot more complicated (in a good way) than mine.

My script is actually very basic, but the potion effects I'm trying to emulate are pretty straightforward, I mainly was just looking for direct control over the potions and *not* have them tied to the normal spells at all.

I'm actually completely rewriting the entire alchemy skill tree, once I'm done i'll probably share it with the community Smile

But here's a small sample of a few of the potions; more for anyone else who needs/wants help. Disregard the Alchy/Mats requirements, I haven't balanced those yet.

Code:
[ITEMDEF i_potion_minor_agility]
ID=i_bottle_small_full
NAME=Minor Agility Potion
TYPE=T_POTION
TDATA1=i_bottle_small_empty

RESOURCES=i_reag_blood_moss, i_bottle_small_water
SKILLMAKE=ALCHEMY 15.1

ON=@Create
COLOR=046
MORE1=s_Agility_potion
MORE2=10

CATEGORY=Infinity Items
SUBSECTION=Potions
DESCRIPTION=Minor Agility Potion

[ITEMDEF i_potion_moderate_agility]
ID=i_bottle_medium_full
NAME=Moderate Agility Potion
TYPE=T_POTION
TDATA1=i_bottle_medium_empty

RESOURCES=i_reag_blood_moss, i_bottle_medium_water
SKILLMAKE=ALCHEMY 15.1

ON=@Create
COLOR=046
MORE1=s_Agility_potion
MORE2=15

CATEGORY=Infinity Items
SUBSECTION=Potions
DESCRIPTION=Moderate Agility Potion

[ITEMDEF i__potion_major_agility]
ID=i_bottle_large_full
TYPE=T_POTION
NAME=Major Agility Potion
TDATA1=i_bottle_large_empty

RESOURCES=i_reag_blood_moss 3, i_bottle_large_water
SKILLMAKE=ALCHEMY 35.1

ON=@Create
COLOR=046
MORE1=s_Agility_potion
MORE2=20

CATEGORY=Infinity Items
SUBSECTION=Potions
DESCRIPTION=Major Agility Potion

[Spell 90]
DEFNAME=s_Agility_Potion
NAME=Agility
FLAGS=SPELLFLAG_TARG_CHAR|SPELLFLAG_DIR_ANIM| SPELLFLAG_HARM | SPELLFLAG_FX_TARG |

SPELLFLAG_PLAYERONLY
RUNE_ITEM=i_RUNE_ALCHEM_3
DURATION=2*60.0,4*60.0
ON=@Effect
   IF (<SRC.RESTEST i_mem_agility_potion>)
      SRC.CONSUME i_mem_agility_potion
   ENDIF
   SERV.NEWITEM i_mem_agility_potion
   NEW.MORE2=<ACT.MORE2>
   SRC.EQUIP <NEW>
   NEW.TIMER=300

[ITEMDEF i_mem_agility_potion]
ID=i_memory
NAME=agility
TYPE=t_eq_script
ON=@Equip
   SRC.SYSMESSAGE You feel very quick on your feet...
   SOUND 503
   EFFECT 3,i_fx_heal_effect,1,17,0
   SRC.DEX=<SRC.DEX> +<MORE2>
ON=@UnEquip
   SRC.SYSMESSAGE The effects seem to dissipate.
   SOUND 503
   EFFECT 3,i_fx_heal_effect,1,17,0
   SRC.DEX=<SRC.DEX> +-<MORE2>
ON=@Timer
   REMOVE
   RETURN 1

Code:
[ITEMDEF i_potion_hallucination]
ID=i_bottle_small_full
NAME=Hallucination Potion
TYPE=t_potion
TDATA1=i_bottle_small_empty
RESOURCES=i_reag_blood_moss, i_reag_ginseng, i_reag_mandrake_root, i_reag_blackmoor,

i_bottle_small_water
SKILLMAKE=ALCHEMY 15.1

ON=@Create
COLOR=07f1
MORE1=s_Hallucination_Potion
MORE2=100.0

CATEGORY=Infinity Items
SUBSECTION=Potions
DESCRIPTION=Hallucination Potion

[Spell 89]
DEFNAME=s_Hallucination_Potion
NAME=Hallucination
FLAGS=SPELLFLAG_TARG_CHAR|SPELLFLAG_DIR_ANIM| SPELLFLAG_HARM | SPELLFLAG_FX_TARG |

SPELLFLAG_PLAYERONLY
RUNE_ITEM=i_RUNE_ALCHEM_3
DURATION=2*60.0,4*60.0
ON=@Effect
   IF (<SRC.RESTEST i_mem_hallucination_potion>)
      SRC.CONSUME i_mem_hallucination_potion
   ENDIF
   SERV.NEWITEM i_mem_hallucination_potion
   SRC.EQUIP <NEW>
   NEW.TIMER=60

[ITEMDEF i_mem_hallucination_potion]
ID=i_memory
NAME=hallucination
TYPE=t_eq_script
ON=@Equip
   SRC.SYSMESSAGE You feel very strange...
   SOUND snd_Z_END_MYSTERY1
   EFFECT 3,i_fx_bless_effect,1,17,0
   SRC.FLAGS -statf_hallucinating
ON=@UnEquip
   SRC.SYSMESSAGE The effects seem to dissipate.
   SOUND snd_Z_END_MYSTERY1
   EFFECT 3,i_fx_bless_effect,1,17,0
   SRC.FLAGS +statf_hallucinating
   SRC.FIX
ON=@Timer
   REMOVE
   RETURN 1

Code:
[ITEMDEF i_potion_resurrection]
ID=i_bottle_medium_full
NAME=Resurrection
TYPE=T_normal
TDATA1=i_bottle_medium_empty
RESOURCES=i_reag_blood_vial 25, i_bottle_medium_water
SKILLMAKE=ALCHEMY 95.0

ON=@Create
COLOR=079a

ON=@DCLICK
Target Who would you like to revive?
Return 1

On=@targon_item
SRC.MESSAGE That is not a character!
RETURN 1

On=@targon_ground
SRC.MESSAGE That is not a character!
RETURN 1

On=@targon_char
IF (<SRC.TARG.UID>==<SRC.UID>)
SRC.MESSAGE You can't use that on yourself!
ELSE
IF <SRC.TARG.DISTANCE>>1
SRC.MESSAGE You are too far away!
ELSE
SRC.TARG.SPELLEFFECT s_resurrection 100.0
SRC.EMOTE sprinkle the resurrection potion on <SRC.TARG.NAME>
SRC.NEWITEM i_bottle_empty
SRC.ACT.BOUNCE
REMOVE
RETURN 1
ENDIF

CATEGORY=Infinity Items
SUBSECTION=Potions
DESCRIPTION=Resurrection Potion

[Image: 4_Logo.png]
An MMORPG based on the Ultima Online engine.
Completely Custom Map, GUI, AI, Combat, Skills, Crafts, Art, Music and so much more.
http://aetharia.com - Home of Ambition!
07-21-2012 03:15 PM
Find all posts by this user Like Post Quote this message in a reply
Post Reply 


Messages In This Thread
RE: Totally stumped on the "New" spells. - Rayvolution - 07-21-2012 03:15 PM

Forum Jump:


User(s) browsing this thread: 1 Guest(s)