SphereCommunity
Speak - Printable Version

+- SphereCommunity (https://forum.spherecommunity.net)
+-- Forum: Sphere 0.56d (/Forum-Sphere-0-56d)
+--- Forum: Script Help (/Forum-Script-Help)
+--- Thread: Speak (/Thread-Speak)



Speak - xwerswoodx - 02-02-2013 01:24 PM

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/uploads/Keirs%20packet%20guide/www.kairtech.com/uo/info/packetad.htm


RE: Speak - Crusader - 02-02-2013 09:16 PM

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.


RE: Speak - xwerswoodx - 02-02-2013 11:09 PM

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.


RE: Speak - Shaklaban - 02-03-2013 02:10 AM

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 



RE: Speak - xwerswoodx - 02-03-2013 03:06 AM

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


RE: Speak - Mordaunt - 02-03-2013 07:40 AM

Where possible please post in english, especially when a thread started in that language.