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
FORITEMS doesn´t work right?
Author Message
admin phoenix
Master
**

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



Post: #12
RE: FORITEMS doesn´t work right?
ok my friends.
here is the script, if someone need and want it. thanks to all.

Code:
[FUNCTION f_death_to_shrine]
    ref1=<uid>    

FORITEMS 20
  IF ((<link> == <ref1.uid>) && (<type> == T_CORPSE))
    f_loot_death <ref1.uid>
    remove
  ENDIF
ENDFOR

    ref1.smsg @<def.def_smsg_info>,3 You will be teleported to the nex shrine
    local.lowdistance=50000
FORITEMS 6144
  IF (<type> == t_shrine)
   IF (<ref1.distance <uid>> < <local.lowdistance>)
     local.lowdistance= <ref1.distance <uid>>
     ref2 = <uid>
   ENDIF
  ENDIF
ENDFOR
    ref1.go = <ref2.p>
    ref1.update


[FUNCTION f_loot_death]
ref1=<args>
IF <findcont(0)>
    findcont(0).cont=<ref1>
    f_loot_death <ref1.uid>
   RETURN 1
  ELSE
    SRC.RESEND
    RETURN 1
ENDIF
(This post was last modified: 07-11-2012 05:55 AM by admin phoenix.)
07-11-2012 05:55 AM
Find all posts by this user Like Post Quote this message in a reply
Post Reply 


Messages In This Thread
RE: FORITEMS doesn´t work right? - Skul - 07-06-2012, 04:40 PM
RE: FORITEMS doesn´t work right? - admin phoenix - 07-11-2012 05:55 AM
RE: FORITEMS doesn´t work right? - Skul - 07-11-2012, 10:51 PM

Forum Jump:


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