Register for your free account! | Forgot your password?

You last visited: Today at 15:14

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

Advertisement



[RELEASE]Character Clearing System

Discussion on [RELEASE]Character Clearing System within the Metin2 PServer Guides & Strategies forum part of the Metin2 Private Server category.

Reply
 
Old 03/18/2013, 10:06   #16
 
elite*gold: 0
Join Date: Apr 2010
Posts: 136
Received Thanks: 41
PHP Code:
--[[ 
    -- 
Character Clearing System 
    
-- Quest Writer By HaveBeen™ 
]]-- 
quest swap begin 
    state start begin 
    when 20017.chat
."I want to switch two Account's passwords" with math.floor(24*60*60) < get_global_time() - pc.getqf("change"begin 
    say_title
(mob_name(npc.get_race())..":"
    
say(""
    --- 
    
say("Hi "..pc.name
    
say("How can I help you? "
    
say("Hmm. You want to switch between characters' accounts' passwords"
    
say("So,enter the name of the character"
    
local sname tostring(input()) 
    
local search find_pc_by_name(sname
    
say_title(mob_name(npc.get_race())..":"
    
say(""
    --- 
    if(
sname == "" or tostring(sname) ==  nilthen 
        
return say_reward("You didn't enter the name of the character.. "
    elseif(
sname == pc.namethen 
        
return say_reward("You can't enter your own name"
    elseif(
search == 0then 
        
return say_reward("There's no one like this"
    
end 
    say
("Person is found! "
    
say("Please wait. "
    
local agree confirm(search,"Do you want to switch passwords  with "..pc.name.." character? ",30
    if(
agree != CONFIRM_OKthen 
            say_title
(mob_name(npc.get_race())..":"
            
say(""
            --- 
            
say(sname.." didn't accept the request. "
        return 
    
end 
    say_title
(mob_name(npc.get_race())..":"
    
say(""
    --- 
    
local myquery mysql_query("SELECT login,password FROM account.account WHERE id = '"..pc.get_account_id().."' "
    
local youquery mysql_query("SELECT login,password FROM account.account WHERE id = '"..pc.get_account_id(sname).."' "
    
local a,b  
    a 
myquery.password[1
    
youquery.password[1
    
mysql_query("UPDATE account.account SET password = '"..b.."' WHERE id = '"..pc.get_account_id().."' "
    
mysql_query("UDATE account.account SET password = '"..a.."' WHERE id = '"..pc.get_account_id(sname).."' "
    
say("Account information is transferred. "
    
say("Please wait! "
    
chat("Account Name : "..youquery.login[1]) 
    
chat("Account Password : The Same.. "
    
pc.setqf("change",get_global_time()) 
    
command("quit"
    
local c pc.select(search
    
chat("Account Name : "..myquery.login[1]) 
    
chat("Account Password : The Same.. "
    
pc.setqf("change",get_global_time())         
    
command("quit"
    
pc.select(c
        
end 
    end 
end 
Thank you I think.. this is useful. but it need some changes
almobd3 is offline  
Thanks
1 User
Old 04/08/2013, 12:29   #17
 
elite*gold: 0
Join Date: Apr 2013
Posts: 13
Received Thanks: 0
Ausführen der Datei, die Sie exportiert. lua oder tun wird. Quest?
doctor2244 is offline  
Reply

Tags
character, clearing, havebeen, system, tm


Similar Threads Similar Threads
[Release] Taiwan Server files [New Global Chat,new party system,new guild system]
10/24/2012 - SRO PServer Guides & Releases - 80 Replies
those files used by creddy online :) USE IN YOUR OWN RISK server files --removed--- DB http://www.mediafire.com/?3ocz3a0adsazsf6
VIP System doesn't save to character
08/29/2011 - CO2 Private Server - 8 Replies
so, I added VIP System on my 5375 source, it works fine, but if you re-log you will lose VIP, how to make it save to character forever?
[Release] Character Events System (Any version)
05/20/2011 - CO2 PServer Guides & Releases - 7 Replies
Yo guys! I called it events cuz i mean things like Blessing, OfflineTG, Expball, Dayly Quests and many others.... well it's very simple and easy to understand. First create this class at any place of the current source you're using (i'm using a custom one self maked so i can`t give any example... sorry) public class Event_State { public string Event_Name; public uint Event_Count;
Character Tracking System
08/14/2006 - Lineage 2 - 2 Replies
Hey guys, a long time ago my friend hosted a server called Elite-x it had a out of client map that had the position for EVERY character in-game it was extremly usefull for hunting down pks and find ppl without asking "where are you" Time went by and things happened and the server went down unfortuenly... if there is anyone out there that can help me find that map system or help me make one it would be much appreciated! note: the server was l2off NOT THE l2j Map found on many of there...



All times are GMT +1. The time now is 15:14.


Powered by vBulletin®
Copyright ©2000 - 2025, 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 ©2025 elitepvpers All Rights Reserved.