Register for your free account! | Forgot your password?

You last visited: Today at 14:02

  • Please register to post and access all features, it's quick, easy and FREE!

Advertisement



[Release] Mod Item to Mute ( eng )

Discussion on [Release] Mod Item to Mute ( eng ) within the Metin2 PServer Guides & Strategies forum part of the Metin2 Private Server category.

Reply
 
Old   #1
 
gkilah's Avatar
 
elite*gold: 0
Join Date: Apr 2009
Posts: 68
Received Thanks: 104
Post [Release] Mod Item to Mute ( eng )

This a simple MOD item to can mute and unmute players.

Item used for this : 70021 ( Angel`s Blessing )

You can to what item do you want.

PHP Code:
-- MOD Item to mute
-- Metin2 Kingdom 
-- 
quest mod_item begin
    state start begin
        when 70021.
use begin
               
            say_title 
("Hello, ".. pc.get_name() ..".")
            
say("")
                        
say("MOD Item, you can mute, unmute, transfer yourelf")
                        
say("near any player or transfer any player neat you")
            
say("")
                        
local a select "Mute player" "Unmute player" "TP yourself""Transfer player""Exit" )
                        
            if 
== 1 then
                        say
("Name of player who you wanna mute")
                        
say("")
                        
say("Info : Abusing MOD power you will be removed")
            
say("Make sure you type the correct name of player")
                        
local cblock input()
            
say("This is the corrent name of player do you wanna mute ?")
            
say_red(" Name : ".. cblock .." ")
            
local m select "Yes""No")
            if 
== 1 then
                        say
("Time in seconds")
                        
say("Example :")
                        
say("5 Min = 300")
                        
say("10 Min = 600")
                        
say("1 Hour = 3600")
                    
say("Insert how many seconds do you want")
                    
local cbtime input()
                    
command("block_chat ".. cblock .." ".. cbtime .."")
                        
notice_all("Player ".. cblock .." is muted for ".. cbtime .." seconds")
                    --
notice_all("Plase use only english in shout")
            
end
            
if == 2 then
            
return
            
end
                        end
                        
                    
if == 2 then
                       say
("Insert name of player who will be unmuted")
               
say("You can check the list of blocked players")
               
say("with this command block_chat_list ")
                       
local cublock input()
                       
command("block_chat ".. cublock .." 0")
                       
notice_all("Mute for player ".. cublock .." was removed")
                       
end
                       
               
if == 3 then
               say
("You can teleport your near any player")
               
say("Insert player name and you will be teleported")
               
say("near that player, Sometime need to TP yourself")
               
say("2x times, because its a small error at tp")
            
local t select ("Telport""No, thanks")
            if 
== 1 then 
            say
("Insert player name:")
            
local wtp input()
            
command("warp ".. wtp .."")
            
end
            
if == 2 then
            
return
                
end    
               end
        
               
if == 4 then
               say
("You can transfer any player near you")
               
say("Just insert name of player who wanna be")
               
say("transfered")
            
local r select ("Transfer""No, thanks")
            if 
== 1 then
            say
("Insert player name :")
            
local ttp input()
            
command("transfer ".. ttp .." ")
            
end
            
if == 2 then 
            
return
            
end                
                end

               
if == 5 then
               
return
               
end

end 
end
end 
Attached Files
File Type: rar moditem.rar (626 Bytes, 130 views)
gkilah is offline  
Thanks
2 Users
Old 01/10/2011, 00:42   #2
 
elite*gold: 5
Join Date: Oct 2010
Posts: 1,692
Received Thanks: 1,772
nice idee but if you mute an player per code its easier

PS: pls post your quest as php
DasKuchen is offline  
Old 01/10/2011, 13:20   #3
 
elite*gold: 0
Join Date: Sep 2010
Posts: 128
Received Thanks: 42
Also kann man ein Item für eine gewisse Zeit benutzen ?
.xSunjiix is offline  
Old 01/10/2011, 13:43   #4
 
Wanker #1's Avatar
 
elite*gold: 0
Join Date: Sep 2010
Posts: 255
Received Thanks: 164
Quote:
Originally Posted by .xSunjiix View Post
Also kann man ein Item für eine gewisse Zeit benutzen ?
Nein, das is ein Item mit dem man andren Spielern Chatblock geben kann!
Wanker #1 is offline  
Old 01/10/2011, 13:47   #5
 
elite*gold: 0
Join Date: Sep 2010
Posts: 128
Received Thanks: 42
Quote:
Originally Posted by ****** #1 View Post
Nein, das is ein Item mit dem man andren Spielern Chatblock geben kann!
Danke für die schnelle Antwort ^^
Finde es für die Leute die die Codes nicht kennen hilfreich
.xSunjiix is offline  
Old 01/10/2011, 14:10   #6
 
elite*gold: 0
Join Date: Apr 2008
Posts: 113
Received Thanks: 236
you need to build in a a security so they can't mute other gm's,
also if the input box is empty and they press ok, your server will reboot
sennah is offline  
Old 01/10/2011, 16:08   #7
 
elite*gold: 35
Join Date: Jun 2009
Posts: 2,187
Received Thanks: 6,906
Make an if loop which check, that an GM use this quest.
If the user is no GM, the quest will end.
CranK™ is offline  
Old 01/10/2011, 16:11   #8


 
elite*gold: 0
Join Date: Feb 2010
Posts: 7,221
Received Thanks: 6,758
Quote:
Originally Posted by CranK™ View Post
Make a if loop queried whether who is GM or player if he is player the quets will end.
Lass' das Englisch lieber sein, tut ja schon weh das anzuschauen.

@Topic,
Crank means, that you should make a query that paying attention whether
you're a GM, but when a player click on the item there is a text:"It's not
allowed to use this item."

Best Regards,
SoNiice
#SoNiice is offline  
Old 01/10/2011, 16:13   #9
 
elite*gold: 35
Join Date: Jun 2009
Posts: 2,187
Received Thanks: 6,906
Quote:
Originally Posted by .SoNiice# View Post
Lass' das Englisch lieber sein, tut ja schon weh das anzuschauen.

@Topic,
Crank means, that you should make a query that paying attention whether
you're a GM, but when a player click on the item there is a text:"It's not
allowed to use this item."

Best Regards,
SoNiice
Ja danke genau so hab ich's gemeint.
Wollte es kurz und knapp ausdrücken
Und bin müde wegn school -.-
CranK™ is offline  
Old 01/10/2011, 16:58   #10
 
elite*gold: 0
Join Date: Apr 2008
Posts: 113
Received Thanks: 236
Quote:
Originally Posted by .SoNiice# View Post
Lass' das Englisch lieber sein, tut ja schon weh das anzuschauen.

@Topic,
Crank means, that you should make a query that paying attention whether
you're a GM, but when a player click on the item there is a text:"It's not
allowed to use this item."

Best Regards,
SoNiice
That's not necessary, the function command("chat_block") will only work for GM's anyway.

but it's easier to just type the command then to use a quest.
sennah is offline  
Old 01/13/2011, 01:26   #11
 
gkilah's Avatar
 
elite*gold: 0
Join Date: Apr 2009
Posts: 68
Received Thanks: 104
I know this script need more security was first build but i`m stuck at "block_chat" power "low_wizard" don`t got that power, until i don`t fiind a way to modify powers i don`t make imporoves at script.

any1 can edit how it wish its free.
gkilah is offline  
Old 02/16/2011, 23:40   #12
 
gkilah's Avatar
 
elite*gold: 0
Join Date: Apr 2009
Posts: 68
Received Thanks: 104
Cool script update

script update in first post, since i success moded the game core to add low_wizard aka [MOD] mute power, i finished this quest too.
gkilah is offline  
Reply


Similar Threads Similar Threads
[Release]Kleiner Warrock Spammer mit Anti-Mute
02/11/2011 - WarRock - 16 Replies
Hi Com. Ich habe ein wenig mit Visual Basic herumgespielt, und einen kleinen Spammer gecodet. Er hat 2 Textboxen. Wenn ihr also 2 unterschiedliche Texte reinschreibt, hat er sowas wie Anti-Mute Screen: http://www.pictureupload.de/originals/pictures/12 0110020457_spammer.jpg
Ts2 mute
08/06/2007 - Quotes - 3 Replies
</span><table border='0' align='center' width='95%' cellpadding='3' cellspacing='1'><tr><td>QUOTE (MSN)</td></tr><tr><td id='QUOTE'>CarrY sagt: wieso setzen wir beide uns nich gleich ins ts und reden mit einander obwohl wir praktisch nebeneinander sitzen? FaaB^ &#092;&#092;o sagt: weil wir uns dann dreifach hören würden... 1x normal via ts 1x weil wir sowieso nebeneinander sitzen 1x hören wir die eigene stimme im mic des anderen X_x Eagle of War sagt:



All times are GMT +2. The time now is 14:02.


Powered by vBulletin®
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
SEO by vBSEO ©2011, Crawlability, Inc.
This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

Support | Contact Us | FAQ | Advertising | Privacy Policy | Terms of Service | Abuse
Copyright ©2024 elitepvpers All Rights Reserved.