quest changename begin state start begin when 71055.use begin say_title("Namensänderung:") say("") say("Mithilfe dieses Items kannst du deinen Namen") say("einmalig ändern, also überlege es dir gut, ob") say("du deinen Namen wirklich ändern möchtest!") say("") say_reward("Möchtest du deinen wirklich Namen ändern?") say("") local change = select("Ja", "Nein") if change == 1 then say_title("Namensänderung:") say("") say("Also du möchtest wirklich deinen Namen ändern!") say("Bevor du deinen Namen ändern kannst, müssen wir") say("erst prüfen ob dieser Name eigentlich noch frei") say("ist.") say("") say_reward("Gib deinen neuen Namen hier ein:") say("") local c_name = input() local c_search = find_pc_by_name(c_name)
if c_search==0 then say_title("Namensänderung:") say("") say("Dieser Name ist noch frei. Bist du dir sicher, dass") say("du dich "..c_name.." nennen möchtest?") say("") local secure = select("Ja", "Nein") if secure == 1 then say_title("Namensänderung:") say("") say("Herzlichen Glückwunsch!") say("") say("Deine Name wurde in "..c_name.." geändert!") say("") say_reward("Bitte einmal relog machen, damit die Änderung") say_reward("gültig wird!") say("") pc.change_name(c_name) pc.remove_item(71055, 1) else say_title("Namensänderung:") say("") say("Schade, dass du dich doch anders entschieden hast,") say("aber vielleicht möchtest du deinen Namen ja ein") say("andermal ändern!") say("") end else say_title("Namensänderung:") say("") say("Dieser Name ist leider schon vergeben, bitte suche") say("dir einen anderen Namen, den du verwenden kannst!") say("") end else return end end end end
2 quest from 2010 serverfiles
PHP Code:
quest chagne_name begin state start begin when 71055.use begin if pc.is_married() then say("You cannot change your name if you are married.") say("") return end
if pc.is_polymorphed() then say("You cannot change your name if you are transformed.") say("") return end
if pc.has_guild() then say("You cannot change your name if you are in the guild. ") say("") return end
if party.is_party() then say("You cannot change your name if you are in group.") say("") return end
if pc.get_level() < 50 then say("You cannot change your name if your level is not higher than lever 49.") say("") return end
if get_time() < pc.getqf("next_time") then say("You can not use it now.") say("")
if is_test_server() == true then say("Since it's test server, you can go") say("") else return end end
say("Please enter the name you want to have") ;
local name = pc.name ; local str = input() ;
local ret = pc.change_name(str) ;
if ret == 0 then say("You didn't log in after you have changed your name.") say("please re-log in.") say("")
char_log(0, "CHANGE_NAME", "HAVE NOT RE-LOGIN") elseif ret == 1 then say("The problem occured while using the item.") say("Please use again.") say("")
char_log(0, "CHANGE_NAME", "ITEM USE PROBLEM") elseif ret == 2 then say("The name is not available.") say("Please enter other name.") say("")
char_log(0, "CHANGE_NAME", "CAN NOT USE NAME") elseif ret == 3 then say("The name is not available.") say("Please enter other name.") say("")
char_log(0, "CHANGE_NAME", "ALREADY USING NAME") elseif ret == 4 then say("You have changed your name successfully.") say("Please log in again.") say("")
You have 2 change the "type" from item "71055"
Open your Navicat (ore what ever) search the Item "71055" and look on the table name "type"
old "type" was "3" change it in "18"
so now can you use the item
You have 2 change the "type" from item "71055"
Open your Navicat (ore what ever) search the Item "71055" and look on the table name "type"
old "type" was "3" change it in "18"
so now can you use the item
Sorry for bad English
kind regards MB
DB
71055 type 18
Quest_functions
pc.change_name
i have use the item 71055 the quest work but the char still have the same name dont change the name -.-