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
In this script how to check to not use the item after it has 100 in skill ??
Author Message
victorstelzer
Journeyman
*

Posts: 80
Likes Given: 0
Likes Received: 0 in 0 posts
Joined: Jun 2012
Reputation: 0



Post: #1
In this script how to check to not use the item after it has 100 in skill ??
even without being in gm in skill he makes no use


[itemdef i_book_alchemy]
NAME=Livro de Magia de Alchemy +3
ID=i_book_open
TYPE=t_normal


On=@dclick
IF (<src.alchemy> > 99)
SRC.SYSMESSAGE @036 Voce cospe a pocao em desgosto ... voce ja esta forte para usar a pocao!
RETURN 1
ENDIF
src.alchemy + = 3
src.anim 17
src.sound snd_spell_gate_travel
REMOVE
(This post was last modified: 09-08-2012 05:04 AM by victorstelzer.)
09-08-2012 04:21 AM
Find all posts by this user Like Post Quote this message in a reply
Alias
Journeyman
*

Posts: 107
Likes Given: 0
Likes Received: 0 in 0 posts
Joined: Apr 2012
Reputation: 0



Post: #2
RE: In this script how to check to not use the item after it has 100 in skill ??
You should use
IF (<src.alchemy> > 999) or IF (<src.alchemy> > 99.9)
09-08-2012 05:13 AM
Find all posts by this user Like Post Quote this message in a reply
victorstelzer
Journeyman
*

Posts: 80
Likes Given: 0
Likes Received: 0 in 0 posts
Joined: Jun 2012
Reputation: 0



Post: #3
RE: In this script how to check to not use the item after it has 100 in skill ??
is the problem, use the item only once, the second time you use the item, it does not do anything
09-08-2012 06:47 AM
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: #4
RE: In this script how to check to not use the item after it has 100 in skill ??
It should not be possible to use it a second time... the REMOVE function should destroy the item and should no longer exist.
09-08-2012 07:09 AM
Find all posts by this user Like Post Quote this message in a reply
victorstelzer
Journeyman
*

Posts: 80
Likes Given: 0
Likes Received: 0 in 0 posts
Joined: Jun 2012
Reputation: 0



Post: #5
RE: In this script how to check to not use the item after it has 100 in skill ??
but if I have 2 book, how do you have any idea?

1 book and would win + 3
would use another book and gets +3
09-08-2012 07:31 AM
Find all posts by this user Like Post Quote this message in a reply
Post Reply 


Forum Jump:


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