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
Fishing Pole
Author Message
Solpadeine
Apprentice
*

Posts: 1
Likes Given: 0
Likes Received: 0 in 0 posts
Joined: Jul 2021
Reputation: 0



Post: #1
Fishing Pole
Hello guys! Why does this code not work and NPCs are not pull out in the game?

Code:
[0dbf]
//Fishing Pole
BUYVALUE=720-900
SELLVALUE=3-5
MORE={019 028}
//MATERIALS=
WEIGHT=2

ONTRIGGER=STEP
remove

ONTRIGGER=DCLICK
IF (<SRC.WEIGHT>) > (<SRC.STR>*40)
    SRC.SYSMESSAGE You have too many items in your backpack!
    RETURN 1
ENDIF
if (<src.flags>&0800000) || (<src.flags>&08)
    src.message You can't use this in hide!
    return 1
endif

ONTRIGGER=PICKUP_GROUND
if (<src.skilltotal>>20000) && (<attr>&04)
    attr=0
endif

ONTRIGGER=TARGON_ITEM
return 1

ONTRIGGER=TARGON_GROUND
IF (<SRC.ACTION>!=-1)
  SRC.SYSMESSAGE You must wait to perform another action
  RETURN 1
ENDIF
IF <MORE> < 2
    SRC.SYSMESSAGE=Your <Name> may have been destroer!
    REMOVE
    RETURN 1
ENDIF
IF (<SRC.FISHING> > 999)
    IF (RAND(30)=1) //20
        MORE=<MORE>+(-1)
        SRC.SYSMESSAGE=Your <Name> may have been damaged!
    ENDIF
ELSE
    IF (RAND(20)=1)
        MORE=<MORE>+(-1)
        SRC.SYSMESSAGE=Your <Name> may have been damaged!
    ENDIF
ENDIF
timer=2

ONTRIGGER=timer
IF (<CONT.ACTION>=18)
    IF !((<CONT.REGION.FLAGS>&02000)||(<CONT.REGION.FLAGS>&04000))
        IF (<CONT.REGION.FLAGS>&040)
                IF (<CONT.FISHING> > 115.0)
                (RAND(40)=4)
                    CONT.NEWNPC={0096 1 005f 1 04123 1 041b3 1 04227 1}
                ELSEIF (<CONT.FISHING> > 115.0)
                (RAND(30)=6)
                    CONT.NEWNPC={04422 1 04423 1}
                ELSEIF (<CONT.FISHING> > 115.0)
                IF (RAND(20)=4)
                    CONT.NEWNPC=04418
                ENDIF
            ENDIF
        ENDIF
    ENDIF
ENDIF
timer=-1
RETURN 1

ONTRIGGER=SPELL
RETURN 1

ONTRIGGER=PICKUP_PACK
if (<src.skilltotal>>20000) && (<attr>&04)
    attr=0
endif
if <attr>&01000
    attr=<attr>&~01000
    timer=-1
endif
src.sysmessage Остаток прочности: <valstr<MORE>> единиц.

ONTRIGGER=EQUIP
if (<src.skilltotal>>20000) && (<attr>&04)
    attr=0
endif
if (<src.flags>&0800000) || (<src.flags>&08)
    src.message You can't use this in hide!
    return 1
endif
IF (<MORE>=0)
    MORE={30 40}
ENDIF
if rand(8)=1
    MORE=<MORE>+(-1)
    SRC.SYSMESSAGE=Your <Name> may have been damaged!
endif
if (<src.findlayer(1).serial>)
    src.findlayer(1).unequip
endif

CATEGORY=Items by Professions
SUBSECTION=Fisherman
DESCRIPTION=Fishing Pole

Thank you for your help!
(This post was last modified: 07-06-2021 11:55 PM by Solpadeine.)
07-06-2021 11:54 PM
Find all posts by this user Like Post Quote this message in a reply
Post Reply 


Messages In This Thread
Fishing Pole - Solpadeine - 07-06-2021 11:54 PM
RE: Fishing Pole - x77x - 07-29-2021, 09:25 PM
RE: Fishing Pole - jdchixin - 08-28-2021, 10:51 AM
RE: Fishing Pole - Banana Split - 07-03-2022, 10:13 PM

Forum Jump:


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