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-nmm6 (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-nmm6 (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-nmm6 (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
xwerswoodx
Journeyman
*

Posts: 86
Likes Given: 4
Likes Received: 7 in 4 posts
Joined: Jun 2012
Reputation: 0

UoMMO

Post: #1
Speak
Hi, I need some help.

I write client Guards and speech works, but if I write .say Guards, Guards don't come. How to talk with command?

Thanks.

Can anyone write this for me?

http://kec.cz/tartaros/steamengine/uploa...cketad.htm
(This post was last modified: 02-02-2013 02:20 PM by xwerswoodx.)
02-02-2013 01:24 PM
Find all posts by this user Like Post Quote this message in a reply
Crusader
Master
**

Posts: 254
Likes Given: 7
Likes Received: 19 in 12 posts
Joined: Apr 2012
Reputation: 6

Erehwon New Hera

Post: #2
RE: Speak
dunno what u did, u should first put here ur code, to see the issue.

Secondly, when some1 call "guards" they come if and only if there is a bad action (like murderer, ppl with red karma, criminals, etc) otherwise they wont show.
02-02-2013 09:16 PM
Find all posts by this user Like Post Quote this message in a reply
xwerswoodx
Journeyman
*

Posts: 86
Likes Given: 4
Likes Received: 7 in 4 posts
Joined: Jun 2012
Reputation: 0

UoMMO

Post: #3
RE: Speak
Normally they come for nightmare but I type .say Guards but they don't come. If someone can write SENDPACKET for me, thanks very much.
02-02-2013 11:09 PM
Find all posts by this user Like Post Quote this message in a reply
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
xwerswoodx
Journeyman
*

Posts: 86
Likes Given: 4
Likes Received: 7 in 4 posts
Joined: Jun 2012
Reputation: 0

UoMMO

Post: #5
RE: Speak
Türksün sanıyorum Türkiye bayrağı var ondan türkçe yazayım Smile Öncelikle teşekkür ederim fakat ben bunu gemiler ve evler içinde kullanacaktım yani misaldi ama ama functionlar ile yapıcam artık sanırım başka yolu yok Smile Teşekkürler Smile
02-03-2013 03:06 AM
Find all posts by this user Like Post Quote this message in a reply
Mordaunt
Super Moderator
****

Posts: 1,237
Likes Given: 26
Likes Received: 55 in 43 posts
Joined: Mar 2012
Reputation: 35



Post: #6
RE: Speak
Where possible please post in english, especially when a thread started in that language.

[Image: 2nis46r.jpg]
02-03-2013 07:40 AM
Visit this user's website Find all posts by this user Like Post Quote this message in a reply
Post Reply 


Forum Jump:


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