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: #4
RE: Weapon using mana + magic animation
New update but i need more help.

[ITEMDEF i_test_scepter]
ID=i_scepter
NAME=Sceptre de feu
//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.REQMANA=3
TAG.OVERRIDE.SOUND_HIT=snd_SPELL_FIREBALL
TAG.OVERRIDE.SOUND_MISS=snd_SPELL_FIREBALL

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

CATEGORY=Desolation - Test Mages
SUBSECTION=Force
DESCRIPTION=Sceptre de feu

ON=@CREATE
HITPOINTS={36 48}



[Events e_mageweaponmana]

ON=@HitTry
If !(<MANA> > <local.var.REQMANA>)
sysMessage @03b2,0,1 Tu n'as pas assez de mana pour attaquer!
Return 1
EndIf

ON=@Hit
SRC.EFFECT = 3,i_fx_fireball_small,6,31,0
If ((<src.flags>&statf_stone) || (<src.region.safe>))
return 1
Else
MANA - <local.var.REQMANA>
EndIf


Ok so it drain my mana but all of it, not the 3 it is supposed to. oh and my no mana msg spam the page, is there a way to make it wait 10 sec to respam ?
03-08-2014 04:36 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 04:36 AM

Forum Jump:


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