|
You last visited: Today at 01:51
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.
03/17/2013, 22:23
|
#1
|
elite*gold: 0
Join Date: Mar 2013
Posts: 154
Received Thanks: 506
|
[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) == nil) then
return say_reward("You didn't enter the name of the character.. ")
elseif(sname == pc.name) then
return say_reward("You can't enter your own name")
elseif(search == 0) then
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_OK) then
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,b
a = myquery.password[1]
b = 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™
|
|
|
03/17/2013, 22:26
|
#2
|
elite*gold: 0
Join Date: Jun 2012
Posts: 125
Received Thanks: 13
|
As usual. That's perfect.
|
|
|
03/17/2013, 22:35
|
#3
|
elite*gold: 30
Join Date: Jul 2010
Posts: 1,627
Received Thanks: 1,450
|
Was für ein Schwachsinn...
|
|
|
03/17/2013, 22:45
|
#4
|
elite*gold: 0
Join Date: Mar 2013
Posts: 154
Received Thanks: 506
|
Quote:
Originally Posted by .Risan.
Was für ein Schwachsinn...
|
I don't understand .s
|
|
|
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?
|
|
|
03/17/2013, 23:13
|
#6
|
elite*gold: 0
Join Date: Mar 2013
Posts: 188
Received Thanks: 149
|
I Might Not Understand What It Does... But Thanks Whatever!
|
|
|
03/17/2013, 23:16
|
#7
|
elite*gold: 0
Join Date: Mar 2013
Posts: 154
Received Thanks: 506
|
Quote:
Originally Posted by JokkiPeikko
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 ?
|
|
|
03/17/2013, 23:21
|
#8
|
elite*gold: 0
Join Date: Mar 2013
Posts: 1
Received Thanks: 0
|
where did u learn english?
|
|
|
03/17/2013, 23:28
|
#9
|
elite*gold: 0
Join Date: Mar 2013
Posts: 154
Received Thanks: 506
|
Quote:
Originally Posted by royalarmor
where did u learn english?
|
none of your business
|
|
|
03/17/2013, 23:50
|
#10
|
elite*gold: 0
Join Date: Jul 2012
Posts: 5,520
Received Thanks: 1,350
|
That's perfect <3
|
|
|
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?
|
|
|
03/18/2013, 02:22
|
#12
|
elite*gold: 0
Join Date: Jan 2009
Posts: 104
Received Thanks: 126
|
Quote:
Originally Posted by Legend2007
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).."' ")
|
|
|
03/18/2013, 07:14
|
#13
|
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?
|
|
|
03/18/2013, 07:26
|
#14
|
elite*gold: 0
Join Date: Jan 2013
Posts: 89
Received Thanks: 67
|
What's that?
|
|
|
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.
|
|
|
 |
|
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 01:52.
|
|