|
You last visited: Today at 06:09
Advertisement
Character Clearing System Error
Discussion on Character Clearing System Error within the Metin2 PServer Guides & Strategies forum part of the Metin2 Private Server category.
05/05/2013, 17:37
|
#1
|
elite*gold: 0
Join Date: May 2013
Posts: 4
Received Thanks: 0
|
Character Clearing System Error
What is the solution Clearing System Error Gives Character
PHP Code:
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
Help me !!!!!!!!
|
|
|
05/05/2013, 18:54
|
#2
|
elite*gold: 0
Join Date: Feb 2009
Posts: 290
Received Thanks: 227
|
WTF x) try this
PHP Code:
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 password FROM account.account WHERE id = '"..pc.get_account_id().."' ") local youquery = mysql_query("SELECT password FROM account.account WHERE id = '"..pc.get_account_id(sname).."' ") local a,b a = myquery.password[1] b = youquery.password[1] mysql_query("UPDATE account.account SET password = '"..b.."' WHERE id = '"..pc.get_account_id().."' ") mysql_query("UPDATE 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
But I don't understand what this quest do XD Only inverse password of account
|
|
|
05/05/2013, 22:05
|
#3
|
elite*gold: 0
Join Date: May 2013
Posts: 4
Received Thanks: 0
|
Quote:
Originally Posted by clad3815
WTF x) try this
PHP Code:
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 password FROM account.account WHERE id = '"..pc.get_account_id().."' ")
local youquery = mysql_query("SELECT password FROM account.account WHERE id = '"..pc.get_account_id(sname).."' ")
local a,b
a = myquery.password[1]
b = youquery.password[1]
mysql_query("UPDATE account.account SET password = '"..b.."' WHERE id = '"..pc.get_account_id().."' ")
mysql_query("UPDATE 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
But I don't understand what this quest do XD Only inverse password of account
|
I had some mistakes mysql_query characters, to be used for settlement
I'm going to swap characters in the room I was the man I'll write Idini Yazicade
I'll write my password and confirming it Yazicade room has its own password, password change his password
|
|
|
05/05/2013, 22:07
|
#4
|
elite*gold: 0
Join Date: Jul 2011
Posts: 2,019
Received Thanks: 1,471
|
ok lol 3 posts ok ^^ i show an test this..
|
|
|
05/06/2013, 07:17
|
#5
|
elite*gold: 0
Join Date: May 2013
Posts: 4
Received Thanks: 0
|
What ?
I had some mistakes mysql_query characters, to be used for settlement
I'm going to swap characters in the room I was the man I'll write Idini Yazicade
I'll write my password and confirming it Yazicade room has its own password, password change his password
|
|
|
05/07/2013, 08:16
|
#6
|
elite*gold: 0
Join Date: May 2013
Posts: 4
Received Thanks: 0
|
Help
|
|
|
 |
Similar Threads
|
[RELEASE]Character Clearing System
04/08/2013 - Metin2 PServer Guides & Strategies - 16 Replies
--]--
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")
|
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;
|
[HELP] ERROR in Character.cs
02/08/2010 - CO2 Private Server - 4 Replies
Here is my error:
http://i46.tinypic.com/25a3sr8.jpg
How can I fix this?
|
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 06:12.
|
|