Skip to content

Commit

Permalink
Added clickable pn tags.
Browse files Browse the repository at this point in the history
  • Loading branch information
Lead0b110010100 authored and Lead0b110010100 committed Apr 27, 2020
1 parent a1d7773 commit 62e63db
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 3 deletions.
2 changes: 1 addition & 1 deletion main/srv1/share/locale/germany/quest/first_login.lua
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ quest first_login begin
pc.set_skill_level(127, 20)
pc.set_skill_level(128, 20)

name = tag(NAME_COLOR, pc.get_name())
name = clickable_tag(NAME_COLOR, pc.get_name())
job = ({"Krieger","Ninja","Sura","Schamanen"})[pc.job+1]
empire = ({"Shinsoo","Chunjo","Jinno"})[pc.get_empire()]

Expand Down
2 changes: 1 addition & 1 deletion main/srv1/share/locale/germany/quest/level_info.lua
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ quest level_info begin
state start begin
when levelup begin
if pc.level == 100 and not pc.is_gm() then
notice_all(tag(SERVER_COLOR, "[Server]") .. " " .. tag(NAME_COLOR, pc.get_name()) .. " " .. tag(TEXT_COLOR, string.format("hat das max Lv. %d erreicht, Glückwunsch!", 100)))
notice_all(tag(SERVER_COLOR, "[Server]") .. " " .. clickable_tag(NAME_COLOR, pc.get_name()) .. " " .. tag(TEXT_COLOR, string.format("hat das max Lv. %d erreicht, Glückwunsch!", 100)))
end
end
end
Expand Down
1 change: 1 addition & 0 deletions main/srv1/share/locale/germany/quest/quest_functions
Original file line number Diff line number Diff line change
Expand Up @@ -982,3 +982,4 @@ xpcall
select3
BuildSkillList
tag
clickable_tag
4 changes: 4 additions & 0 deletions main/srv1/share/locale/germany/quest/questlib.lua
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,10 @@ tag = function (color_id, text)
return string.format("%s%s|r", tagColors[color_id], text)
end

clickable_tag = function (color_id, text)
return string.format("%s|Hpn_%s|h%s|h|r", tagColors[color_id], text, text)
end

--quest.create = function(f) return coroutine.create(f) end
--quest.process = function(co,args) return coroutine.resume(co, args) end
setstate = q.setstate
Expand Down
2 changes: 1 addition & 1 deletion main/srv1/share/locale/germany/quest/rainbowstone.lua
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ quest rainbowstone begin
pc.set_skill_level((vnum) ,40)
say_reward("Deine Fertigkeit wurde auf P gesetzt.")
say_reward("Viel Spaß weiterhin auf unserem Server!")
notice_all(tag(SERVER_COLOR, "[Server]") .. " " .. tag(NAME_COLOR, pc.get_name()) .. " " .. tag(TEXT_COLOR, string.format("hat erfolgreich %sauf P geskillt!", name)))
notice_all(tag(SERVER_COLOR, "[Server]") .. " " .. clickable_tag(NAME_COLOR, pc.get_name()) .. " " .. tag(TEXT_COLOR, string.format("hat erfolgreich %sauf P geskillt!", name)))
pc.removeitem("50512", 1)
end
end
Expand Down

0 comments on commit 62e63db

Please sign in to comment.