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
Speak
Author Message
Shaklaban
Master
**

Posts: 378
Likes Given: 0
Likes Received: 1 in 1 posts
Joined: Mar 2012
Reputation: 8

DOT

Post: #4
RE: Speak
Sendpacket sending packets to the client, not simulate them from clients so only option is scripting the behaviors. For buy, sell etc. there is a hear function you can use it with forchars. But for guards hear will not works so you need to use your own guards function like

PHP Code:
[function cguards]
if (<
region.flags>&region_flag_guarded)
    
ref1=<uid>
    
forchars 18
        
if ((<notogetflag <ref1>> = 4) || (<notogetflag <ref1>> = 6)) && (!(<flags>&statf_dead) && !(<flags>&statf_invisible) && !(<flags>&statf_hidden) && !(<uid> = <ref1>))
            
serv.newnpc c_h_guard
            ref2
=<new>
            
serv.newitem i_rune_summon_creature
            
new.timer=<serv.GuardLinger> * 60
            
new.cont=<ref2>
            
ref2.flags |= statf_conjured
            ref2
.go <p>
            
ref2.attack <uid>
            return 
1
        
endif
    endfor    
endif 
(This post was last modified: 02-03-2013 02:14 AM by Shaklaban.)
02-03-2013 02:10 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
Speak - xwerswoodx - 02-02-2013, 01:24 PM
RE: Speak - Crusader - 02-02-2013, 09:16 PM
RE: Speak - xwerswoodx - 02-02-2013, 11:09 PM
RE: Speak - Shaklaban - 02-03-2013 02:10 AM
RE: Speak - xwerswoodx - 02-03-2013, 03:06 AM
RE: Speak - Mordaunt - 02-03-2013, 07:40 AM

Forum Jump:


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