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-nmm6 (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-nmm6 (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-nmm6 (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
@SPELLSELECT ARGO not work
Author Message
WRWR
Journeyman
*

Posts: 212
Likes Given: 30
Likes Received: 1 in 1 posts
Joined: Mar 2012
Reputation: 1



Post: #1
@SPELLSELECT ARGO not work
Code:
ON=@SPELLSELECT
   IF <ARGO.TYPE>==t_scroll
      ARGN2 /=2   //REDUCE MANA
   ENDIF

get me an error : Can't resolve ARGO.TYPE

http://wiki.sphere.torfo.org/index.php/@SpellSelect

How to make mana REDUCE when cast from scrolls?
(This post was last modified: 08-30-2012 09:45 PM by WRWR.)
08-30-2012 09:41 PM
Find all posts by this user Like Post Quote this message in a reply
darksun84
Sir Spamalot
****

Posts: 1,687
Likes Given: 245
Likes Received: 162 in 151 posts
Joined: Mar 2012
Reputation: 35



Post: #2
RE: @SPELLSELECT ARGO not work
Try with

PHP Code:
IF <UID.<argo>.type>==t_scroll
      ARGN2 
/=2   //REDUCE MANA
   
ENDIF 
(This post was last modified: 08-30-2012 10:58 PM by darksun84.)
08-30-2012 10:58 PM
Find all posts by this user Like Post Quote this message in a reply
WRWR
Journeyman
*

Posts: 212
Likes Given: 30
Likes Received: 1 in 1 posts
Joined: Mar 2012
Reputation: 1



Post: #3
RE: @SPELLSELECT ARGO not work
19:45:ERROR:Can't resolve <UID.07b6.type>
19:45:ERROR:Undefined symbol ''
08-30-2012 11:46 PM
Find all posts by this user Like Post Quote this message in a reply
darksun84
Sir Spamalot
****

Posts: 1,687
Likes Given: 245
Likes Received: 162 in 151 posts
Joined: Mar 2012
Reputation: 35



Post: #4
RE: @SPELLSELECT ARGO not work
(08-30-2012 11:46 PM)WRWR Wrote:  19:45:ERROR:Can't resolve <UID.07b6.type>
19:45:ERROR:Undefined symbol ''

Try this , with or without "" Big Grin

PHP Code:
IF !(STRCMP("<argo.type>","t_scroll"))
     
ARGN2 /=2   //REDUCE MANA
ENDIF 
(This post was last modified: 08-30-2012 11:59 PM by darksun84.)
08-30-2012 11:59 PM
Find all posts by this user Like Post Quote this message in a reply
Shaklaban
Master
**

Posts: 378
Likes Given: 0
Likes Received: 1 in 1 posts
Joined: Mar 2012
Reputation: 8

DOT

Post: #5
RE: @SPELLSELECT ARGO not work
When spells casted from scrolls, spells already uses half of mana and no reagents.
(This post was last modified: 08-31-2012 12:08 AM by Shaklaban.)
08-31-2012 12:08 AM
Visit this user's website Find all posts by this user Like Post Quote this message in a reply
Terrikate
Apprentice
*

Posts: 30
Likes Given: 1
Likes Received: 2 in 2 posts
Joined: Mar 2012
Reputation: 1

Ultima Alianza

Post: #6
RE: @SPELLSELECT ARGO not work
The inicial script is correct but the trigger only works on characters, not spells. Here works.

Anyway, as said Shaklaban scrolls work like default.
(This post was last modified: 08-31-2012 12:50 AM by Terrikate.)
08-31-2012 12:48 AM
Visit this user's website Find all posts by this user Like Post Quote this message in a reply
RanXerox
Master
**

Posts: 550
Likes Given: 1
Likes Received: 12 in 9 posts
Joined: Dec 2010
Reputation: 19



Post: #7
RE: @SPELLSELECT ARGO not work
ARGO is sometimes the player - who has no "type"... Maybe something like this:

Code:
ON=@SPELLSELECT
   IF <ARGO.ISITEM>
      IF <ARGO.TYPE>==t_scroll
         ARGN2 /=2   //REDUCE MANA
      ENDIF
   ENDIF
08-31-2012 01:22 AM
Find all posts by this user Like Post Quote this message in a reply
admin phoenix
Master
**

Posts: 354
Likes Given: 1
Likes Received: 23 in 13 posts
Joined: Mar 2012
Reputation: 3



Post: #8
RE: @SPELLSELECT ARGO not work
yes, that´s the way you have to do.
08-31-2012 02:49 AM
Find all posts by this user Like Post Quote this message in a reply
Post Reply 


Forum Jump:


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