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
Warning [2] count(): Parameter must be an array or an object that implements Countable - Line: 786 - File: showthread.php PHP 7.4.33-nmm7 (Linux)
File Line Function
/showthread.php 786 errorHandler->error






Post Reply 
 
Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Weap with spelleffect lightning
Author Message
Aeldaven
Apprentice
*

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



Post: #1
Weap with spelleffect lightning
Hello, i try to upgrade this old tus script on sphere 56c.

this is the old script working good on Tus

[6014]
NAME= Gold Halbert of Lightning
//Halberd
//Using Sword type below
ID=143e
TYPE=13
DAM=50-75
HITPOINTS=31-80
SPEED=20
SKILL=Swordsmanship
REQSTR=45
TWOHANDS=Y
BUYVALUE=64-82
SELLVALUE=32-41
MATERIALS=20 ingots
MATERIALS=20
WEIGHT=5
COLOR=05d
ATTR=21
MOREP=0,7,0

ONTRIGGER=DAMAGE
VAR.X=RAND(4)
IF X==1
SOUND=SPELL_LIGHTNING
SRC.SPELLEFFECT 30 550
ENDIF
RETURN 0

CATEGORY=+Helios+ Items
SUBSECTION=Light Weapons
DESCRIPTION=Halbert

_________________________________________________
This is my test with no lightning and no message

[ITEMDEF i_light_Halberd]
ID=i_halberd
DEFNAME=i_light_Halberd
TYPE=t_weapon_sword
DAM=50,75
FLIP=1
SKILL=Swordsmanship
SPEED=20
VALUE=50000
WEIGHT=5.0
TWOHANDS=Y
RESOURCES=20 i_ingot_iron,2 i_board
SKILLMAKE=Blacksmithing 75.0

ON=@Create
HITPOINTS=100
COLOR = 05d
NAME=Halberd of Lightning
ATTR = 21
MOREY = 7

on=@Equip
src.message Il potere del Fulmine scorre nelle tue mani!

on=@Hit
IF (rand(4)) == 1
SRC.SpellEffect=s_lightning,100.0,<uid>
SOUND=snd_SPELL_LIGHTNING
MESSAGE test ok!!!
Return 1
Endif
CATEGORY=+Helios+ Items
SUBSECTION=Armi Light
DESCRIPTION=Halberd
______________________________________________

I need a +7 magic halberd, with lightning cast at 25% random.

Tnx all for reply.
(This post was last modified: 08-27-2014 10:28 AM by Aeldaven.)
08-27-2014 10:17 AM
Find all posts by this user Like Post Quote this message in a reply
Post Reply 


Messages In This Thread
Weap with spelleffect lightning - Aeldaven - 08-27-2014 10:17 AM
RE: Weap with spelleffect lightning - XuN - 08-27-2014, 04:36 PM
RE: Weap with spelleffect lightning - Rizz - 08-27-2014, 05:58 PM

Forum Jump:


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