Character Clearing System Error

05/05/2013 17:37 MindLove™#1
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 clad3815#2
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 MindLove™#3
Quote:
Originally Posted by clad3815 View Post
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 Stαgє6#4
ok lol 3 posts ok ^^ i show an test this..
05/06/2013 07:17 MindLove™#5
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 MindLove™#6
Help