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
ON=@DESTROY change tag
Author Message
Lazarus
Master
**

Posts: 352
Likes Given: 11
Likes Received: 7 in 6 posts
Joined: Jun 2012
Reputation: 1

Hybris Ultima Online

Post: #1
ON=@DESTROY change tag
Hi! First sry for the english Sad

Ive created a new system of Air, Fire, Water, and Earth Elementals.
You can cast ONLY 1 elemental per time, [With a item] so... You can't get 2 items of 2 elementals... [You only cast 1 elemental type with the item...] and you only can have 1 type item to cast Smile
(You can choose what type of mage you are Tongue)
So, this it's DONE.
Now I have a problem here...


I want to let the players cast ONLY 1 ELEMENTAL OF THE SAME TYPE.
So I have created this:

Code:
IN THE SPELL

ON=@START
if !(<findid.i_talisman_aire>)
Sysmessage @50 You need a air talisman to cast this.
return 1
endif
IF (<SRC.MAGERY> < 100.0) || (<SRC.EVALUATINGINTEL> < 100.0) || (<SRC.MEDITATION> < 100.0)
sysmessage @50 You don't have magery, or eval or meditation to cast this
sysmessage @40 Your talisman has erased!
SRC.f_clear_elem // function that erase the talismans
Return 1
endif
IF (<SRC.TAG0.CASTEANDOELEMENTAL>=1)
sysmessage @50 You can only cast 1 elemental per time
return 1
endif
SRC.TAG0.CASTEANDOELEMENTAL=1

ON=@Fail
SRC.TAG0.CASTEANDOELEMENTAL =

This works Flawless.
But I have now a problem with the ELEMENTAL NPC

Code:
ON=@DESTROY
act.sysmessage @50 Now you can cast again a elemental!
act.tag0.casteoelemental.remove

This... Doesn't works becuase erase the tag of the KILLER of the elemental and not to the OWNER of the elemental.
I have try with ON=@DEATH and the same things and nothing. Too I have try with src.tag0, i.tag... etc.
And I don't want a Bug or something else with all release* spk


What can I do?

Thanks ! Smile

Lazarus!

[Image: 2hy9q0y.png]
(This post was last modified: 09-05-2012 05:09 AM by Lazarus.)
09-05-2012 05:08 AM
Visit this user's website Find all posts by this user Like Post Quote this message in a reply
Post Reply 


Messages In This Thread
ON=@DESTROY change tag - Lazarus - 09-05-2012 05:08 AM
RE: ON=@DESTROY change tag - darksun84 - 09-05-2012, 05:26 AM
RE: ON=@DESTROY change tag - Lazarus - 09-05-2012, 03:49 PM
RE: ON=@DESTROY change tag - Gadianton - 09-07-2012, 03:55 AM
RE: ON=@DESTROY change tag - Lazarus - 09-07-2012, 06:14 AM
RE: ON=@DESTROY change tag - RanXerox - 09-07-2012, 08:34 AM
RE: ON=@DESTROY change tag - Lazarus - 09-07-2012, 12:48 PM
RE: ON=@DESTROY change tag - Lazarus - 09-10-2012, 03:14 AM

Forum Jump:


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