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
targon_ground - need help ^_^
Author Message
Lazarus
Master
**

Posts: 352
Likes Given: 11
Likes Received: 7 in 6 posts
Joined: Jun 2012
Reputation: 1

Hybris Ultima Online

Post: #16
RE: targon_ground - need help ^_^
(08-08-2012 06:57 AM)Mordaunt Wrote:  
Code:
if (<SERV.MAP(<argv[0]>,<argv[1]>,<argv[3]>).TYPE==t_multi)
  src.sysmessage you cannot teleport into a house
  return 1
endif

that would fix the house issue...
As for the items and such, it would be a shorter script to say what you CAN tele onto than what you can't....

Code:
[function summon_ground_avaible]
if  (<SERV.MAP(<argv[0]>,<argv[1]>,<argv[3]>).TYPE==t_normal) || (<SERV.MAP(<argv[0]>,<argv[1]>,<argv[3]>).TYPE==t_grass) || (<SERV.MAP(<argv[0]>,<argv[1]>,<argv[3]>).TYPE==t_sand) || (<SERV.MAP(<argv[0]>,<argv[1]>,<argv[3]>).TYPE==t_swamp) || (<SERV.MAP(<argv[0]>,<argv[1]>,<argv[3]>).TYPE==t_snow) || (<SERV.MAP(<argv[0]>,<argv[1]>,<argv[3]>).TYPE==t_jungle) || (<SERV.MAP(<argv[0]>,<argv[1]>,<argv[3]>).TYPE==t_forest)
  return 0
else
  src.sysmessage cannot teleport there
  return 1
endif

Now if they target anything that is NOT ground they will not be allowed to teleport, couple this with the check for a multi, distance and los and it should prevent any nonsense

That of t_multi doesn't works... I can tp in the houses Sad can you try in your own server please :'(?
but I'll try the other set of scripts, and will edit this.

I need go to dinner now.

Thanks, rly ^_^

[Image: 2hy9q0y.png]
08-08-2012 10:51 AM
Visit this user's website Find all posts by this user Like Post Quote this message in a reply
Post Reply 


Messages In This Thread
targon_ground - need help ^_^ - Lazarus - 08-07-2012, 09:35 AM
RE: targon_ground - need help ^_^ - WRWR - 08-07-2012, 10:09 AM
RE: targon_ground - need help ^_^ - WRWR - 08-07-2012, 11:26 AM
RE: targon_ground - need help ^_^ - WRWR - 08-07-2012, 04:20 PM
RE: targon_ground - need help ^_^ - Lazarus - 08-08-2012 10:51 AM

Forum Jump:


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