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
Location gate (src.go)
Author Message
Snaigel
Journeyman
*

Posts: 75
Likes Given: 0
Likes Received: 1 in 1 posts
Joined: Jan 2017
Reputation: 0



Post: #1
Location gate (src.go)
I'm trying to do a gate that teleports players to a specific location, but I want it to don't let harmed people travel, and only players, no npcs. But it lets npc to travel and harmed people aswell.

My script looks like this:

Quote:[ITEMDEF i_gate_cemen]
DEFNAME=i_gate_cemen
ID=i_moongate_black
NAME=Portal misterioso
CATEGORY=Gates
SUBSECTION=Dungeons
DESCRIPTION=Entrada Cemen brit niv2


ON=@DCLICK
IF (<DISTANCE> > 2)
SRC.SYSMESSAGE Estas demasiado lejos.
RETURN 1
ELSE
SRC.GO=5225,1726
ENDIF
IF (<SRC.ISPLAYER>)
SRC.GO=5225,1726
ELSE
RETURN 1
ENDIF
if (<EVAL (<src.hits>*100) > < <EVAL (<src.str>*100) >)
src.sysmessage ¡No puedes traspasarlo estando herido!
return 1
endif
else
SRC.GO=5225,1726
endif

ON=@Step

IF (<SRC.ISPLAYER>)
SRC.GO=5225,1726
ELSE
RETURN 1
ENDIF
if (<EVAL (<src.hits>*100) > < <EVAL (<src.str>*100) >)
src.sysmessage ¡No puedes traspasarlo estando herido!
return 1
endif
else
SRC.GO=5225,1726
endif
01-30-2017 10:31 PM
Find all posts by this user Like Post Quote this message in a reply
Post Reply 


Messages In This Thread
Location gate (src.go) - Snaigel - 01-30-2017 10:31 PM
RE: Location gate (src.go) - Coruja - 01-31-2017, 01:11 AM
RE: Location gate (src.go) - Snaigel - 01-31-2017, 01:51 AM
RE: Location gate (src.go) - Leonidas - 01-31-2017, 09:49 AM
RE: Location gate (src.go) - Snaigel - 01-31-2017, 09:54 AM

Forum Jump:


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