-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Lead0b110010100
authored and
Lead0b110010100
committed
Apr 23, 2020
1 parent
d7284f5
commit dd025d6
Showing
3 changed files
with
62 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,51 @@ | ||
quest change_name_item begin | ||
state start begin | ||
when 71055.use begin | ||
say_title(gameforge.changename.title) | ||
say() | ||
say(gameforge.changename.help_1) | ||
say(gameforge.changename.help_2) | ||
say() | ||
say_reward(gameforge.changename.help_3) | ||
say() | ||
local change = select(gameforge.locale.yes, gameforge.locale.no) | ||
|
||
if change == 1 then | ||
say_reward(gameforge.changename.change_1) | ||
local c_name = input() | ||
|
||
if c_name != "" then | ||
local sicherheitsabfrage = pc.change_name(c_name) | ||
|
||
if sicherheitsabfrage == 1 then | ||
say_title(gameforge.changename.title) | ||
say() | ||
say(gameforge.changename.cantchange_1) | ||
wait() | ||
elseif sicherheitsabfrage == 2 then | ||
say_title(gameforge.changename.title) | ||
say() | ||
say(gameforge.changename.field_has_forbidden_chars) | ||
say() | ||
wait() | ||
elseif sicherheitsabfrage == 3 then | ||
say_title(gameforge.changename.title) | ||
say() | ||
say(gameforge.changename.namenot_1) | ||
say() | ||
wait() | ||
elseif sicherheitsabfrage == 4 then | ||
pc.remove_item(71055, 1) | ||
local x = pc.get_x() * 100 | ||
local y = pc.get_y() * 100 | ||
pc.warp(x, y) | ||
end | ||
else | ||
return | ||
end | ||
else | ||
return | ||
end | ||
end | ||
end | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -33,3 +33,4 @@ rainbowstone.lua | |
warehouse_item_destroyer.lua | ||
soulstone.lua | ||
level_info.lua | ||
change_name_item.lua |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters