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
|
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 |
|
|
User(s) browsing this thread: 2 Guest(s)