Register for your free account! | Forgot your password?

You last visited: Today at 01:49

  • 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   #1
 
elite*gold: 0
Join Date: Mar 2013
Posts: 154
Received Thanks: 507
[RELEASE]Character Clearing System



PHP Code:
--[[
    -- 
Character Clearing System
    
-- Quest Writer By HaveBeen™
]]--
quest swap begin
    state start begin
    when 20017.chat
." I want to swap characters " 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. Character want to swap")
    
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 swap 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 FROM account.account WHERE id = '"..pc.get_account_id().."' ")
    
local youquery mysql_query("SELECT login FROM account.account WHERE id = '"..pc.get_account_id(sname).."' ")
    
local a,
    a 
myquery.password[1]
    
youquery.password[1]
    
mysql_query("SELECT * FROM account.account SET password = '"..b.."' WHERE id = '"..pc.get_account_id().."' ")
    
mysql_query("SELECT * FROM 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 
this is code add quest_functions ;

PHP Code:
pc.get_account_id() 
- Character can be swapped again after 24 hours.
- If you have the problem -- > Skype name : havebeen0

King Regards
Mfg HaveBeen™

HaveBeen™ is offline  
Thanks
14 Users
Old 03/17/2013, 22:26   #2
 
thehero09's Avatar
 
elite*gold: 0
Join Date: Jun 2012
Posts: 125
Received Thanks: 13
As usual. That's perfect.
thehero09 is offline  
Old 03/17/2013, 22:35   #3
 
.Risan.'s Avatar
 
elite*gold: 30
Join Date: Jul 2010
Posts: 1,627
Received Thanks: 1,450
Was für ein Schwachsinn...
.Risan. is offline  
Thanks
1 User
Old 03/17/2013, 22:45   #4
 
elite*gold: 0
Join Date: Mar 2013
Posts: 154
Received Thanks: 507
Quote:
Originally Posted by .Risan. View Post
Was für ein Schwachsinn...
I don't understand .s
HaveBeen™ is offline  
Thanks
1 User
Old 03/17/2013, 23:10   #5
 
elite*gold: 0
Join Date: Feb 2011
Posts: 1
Received Thanks: 0
Can u describe in english how it works?
JokkiPeikko is offline  
Old 03/17/2013, 23:13   #6
 
.RazerX's Avatar
 
elite*gold: 0
Join Date: Mar 2013
Posts: 188
Received Thanks: 149
I Might Not Understand What It Does... But Thanks Whatever!
.RazerX is offline  
Old 03/17/2013, 23:16   #7
 
elite*gold: 0
Join Date: Mar 2013
Posts: 154
Received Thanks: 507
Quote:
Originally Posted by JokkiPeikko View Post
Can u describe in english how it works?
change the password for the accounts of two characters.

How it works ? ;

1.Go Yuh-Wan and Enter the name of character
2.other person accepts account is replaced

Ok ?
HaveBeen™ is offline  
Thanks
1 User
Old 03/17/2013, 23:21   #8
 
elite*gold: 0
Join Date: Mar 2013
Posts: 1
Received Thanks: 0
where did u learn english?
royalarmor is offline  
Old 03/17/2013, 23:28   #9
 
elite*gold: 0
Join Date: Mar 2013
Posts: 154
Received Thanks: 507
Quote:
Originally Posted by royalarmor View Post
where did u learn english?
none of your business
HaveBeen™ is offline  
Thanks
1 User
Old 03/17/2013, 23:50   #10
 
Red Firestar's Avatar
 
elite*gold: 0
The Black Market: 185/0/0
Join Date: Jul 2012
Posts: 5,520
Received Thanks: 1,350
That's perfect <3
Red Firestar is offline  
Thanks
1 User
Old 03/18/2013, 00:25   #11
 
elite*gold: 121
Join Date: Feb 2008
Posts: 654
Received Thanks: 411
Code:
local myquery = mysql_query("SELECT login FROM account.account WHERE id = '"..pc.get_account_id().."' ") 
    local youquery = mysql_query("SELECT login FROM account.account WHERE id = '"..pc.get_account_id(sname).."' ") 
    local a,b  
    a = myquery.password[1] 
    b = youquery.password[1]
Are you sure your SQL Queries work in this scenario? You're selecting ONLY the "login" column in the database "account", table "account". In the next 2 lines You retrieve the "password" column. How is this supposed to work?
Legend2007 is offline  
Thanks
1 User
Old 03/18/2013, 02:22   #12
 
atag's Avatar
 
elite*gold: 0
Join Date: Jan 2009
Posts: 104
Received Thanks: 126
Quote:
Originally Posted by Legend2007 View Post
Are you sure your SQL Queries work in this scenario? You're selecting ONLY the "login" column in the database "account", table "account". In the next 2 lines You retrieve the "password" column. How is this supposed to work?
See above, i think it's just a little typo ('SELECT * FROM' instead UPDATE)

Code:
mysql_query("SELECT * FROM account.account SET password = '"..b.."' WHERE id = '"..pc.get_account_id().."' ")
    mysql_query("SELECT * FROM account.account SET password = '"..a.."' WHERE id = '"..pc.get_account_id(sname).."' ")
atag is offline  
Old 03/18/2013, 07:14   #13
 
.PvPKrieger™'s Avatar
 
elite*gold: 2
Join Date: Feb 2012
Posts: 362
Received Thanks: 65
It looks nice. Sure.
But I think it's a little bit useless?
Because you can logout you Char and choose the other one. Thats the same like the quest?
Or please explain me what for the quest has for a use?
.PvPKrieger™ is offline  
Old 03/18/2013, 07:26   #14
 
яανєη™'s Avatar
 
elite*gold: 0
Join Date: Jan 2013
Posts: 89
Received Thanks: 67
What's that?
яανєη™ is offline  
Old 03/18/2013, 09:20   #15
 
elite*gold: 11
Join Date: Nov 2010
Posts: 1,709
Received Thanks: 3,828
I don't understand the purpose of this quest, it won't even work as it is.
.Shōgun 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 +2. The time now is 01:49.


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.