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
Weapon using mana + magic animation
Author Message
GHelmet
Apprentice
*

Posts: 11
Likes Given: 0
Likes Received: 0 in 0 posts
Joined: Feb 2014
Reputation: 0



Post: #6
RE: Weapon using mana + magic animation
Ive tryed to add the = on the line but now it just dont drain any mana. i must admit i put lane of code without knowing what it should be doing. Is the Local.Var.REQmana check at the right place so for this it should be checking on the weapon. Maybe you can light me up a lantern.

Ok ive change to something more simple, each weapon will have its own event.

So this is what we got now. And now its time to make this weapon shoot fire arrow and not only put a fire effect on the enemy. Anyone got an idea how to make the weapon fire from the character to the monster ?

[ITEMDEF i_flame_scepter]
ID=i_scepter
NAME=Flame Scepter
//TYPE=t_weapon_xbow
TYPE=t_weapon_sword
RANGE=1,10
DAM=10
//SKILL=Archery
SKILL=Magie
TWOHANDS=N
WEIGHT=8
SPEED=20
VALUE=190
TAG.OVERRIDE.SOUND_HIT=snd_SPELL_FIREBALL
TAG.OVERRIDE.SOUND_MISS=snd_SPELL_FIREBALL

ON=@Equip
SRC.EVENTS +e_flamescepter
ON=@Unequip
SRC.EVENTS -e_flamescepter

CATEGORY=Desolation - Test Mages
SUBSECTION=Fire
DESCRIPTION=Flame Scepter

ON=@CREATE
HITPOINTS={36 48}



[Events e_flamescepter]
//Event for item i_flame_scepter
ON=@HitTry
If !(<MANA> >= 3)
sysMessage @03b2,0,1 Tu n'as pas assez de mana pour attaquer!
Return 1
EndIf

ON=@Hit
If ((<src.flags>&statf_stone) || (<src.region.safe>))
return 1
Else
SRC.EFFECT = 3,i_fx_fireball_small,6,31,0
MANA -= 3
EndIf
(This post was last modified: 03-08-2014 05:55 AM by GHelmet.)
03-08-2014 05:45 AM
Find all posts by this user Like Post Quote this message in a reply
Post Reply 


Messages In This Thread
RE: Weapon using mana + magic animation - GHelmet - 03-08-2014 05:45 AM

Forum Jump:


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