Make Improve You're RolePlay
4 posters
:: Ideas
Page 1 of 1
Make Improve You're RolePlay
Imrove your RolePlay Server!
I make some emoticons
HC_EMOTICONS = {
["^[:=8][-^o]?[)%]3>]$"] = "smiling", --
["^%^[_]?%^$"] = "smiling", -- ^_^
["^[:=8][-^o]?[D]$"] = "smiling_big", --
["^[:=8][-^o]?[(%[]$"] = "frowning", --
["^[;][-^o]?[)%]D]$"] = "winking", --
["^[xX][-^o]?[D]+$"] = "laughing", -- xD
["^[lL1][oOöÖ0]+[lL1]+[sSzZ]*%??$"] = "laughing", -- lol
["^[hH][aAeEoOöÖ][hH][aAeEoOöÖ]$"] = "laughing", -- hehe
["^[rR][oO��0]+[fF][lL1]+$"] = "laughing", -- rofl
["^[:=8xX][-^o]?[pPbq]$"] = "cheeky", --
["^[:=8xX]['][-^o]?%($"] = "crying", -- :'(
["^[;][-]?%($"] = "crying", -- ;(
["^D[-^o]?[:=8xX]$"] = "crying", -- Dx
["^T[_.-]?T$"] = "crying", -- T_T
["^[:=8][-^o]?[oO0]$"] = "surprised", -- :O
["^[oO0][_.-]?[oO0]$"] = "surprised", -- O_o
["^[oO0][mM][gG]$"] = "surprised", -- omg
["^[:=8][-^o]?[/\\]$"] = "skeptical", -- :/
["^[:=8][-^o]?[sS]$"] = "uneasy", -- :S
["^>[:=8;][-^o]?[)%]D]$"] = "evil", -- >
["^>[_.-]<$"] = "angry", -- >_<
["^>[:=8;][-^o]?[(%[]$"] = "angry", -- >
["^<3$"] = "heart" -- <3
}
HC_EMOTICON_LINGER_TIME = 3
HC_EMOTICON_FADE_IN_STEP = 0.30
HC_EMOTICON_FADE_OUT_STEP = 0.20
HC_EMOTICON_OPACITY = 0.60
HC_EMOTICON_PATH = "gfx/hc/emoticons/"
function hc_emoticons_init()
addhook("say", "hc_say_hook")
addhook("ms100", "hc_ms100_hook")
addhook("leave", "hc_leave_hook")
hc_smiling_players = {}
hc_emoticons = {}
for i = 1, 32 do
hc_emoticons[i] = {}
end
end
hc_emoticons_init()
function hc_leave_hook(p, reason)
if hc_emoticons[p].smiley_time ~= nil then
freeimage(hc_emoticons[p].emoticon)
freeimage(hc_emoticons[p].speechbubble)
for i, id in ipairs(hc.chat.smiling_players) do
if id == p then
table.remove(hc.chat.smiling_players, i)
break
end
end
end
hc_emoticons[p] = {}
end
function hc_ms100_hook()
local still_smiling_players = {}
for i, p in ipairs(hc_smiling_players) do
local time = os.difftime(os.time(), hc_emoticons[p].smiley_time)
if time < HC_EMOTICON_LINGER_TIME and hc_emoticons[p].alpha < HC_EMOTICON_OPACITY then
hc_emoticons[p].alpha = hc_emoticons[p].alpha + HC_EMOTICON_FADE_IN_STEP
imagealpha(hc_emoticons[p].speechbubble, hc_emoticons[p].alpha)
imagealpha(hc_emoticons[p].emoticon, hc_emoticons[p].alpha)
table.insert(still_smiling_players, p)
elseif time > HC_EMOTICON_LINGER_TIME then
hc_emoticons[p].alpha = hc_emoticons[p].alpha - HC_EMOTICON_FADE_OUT_STEP
if hc_emoticons[p].alpha <= 0 then
freeimage(hc_emoticons[p].emoticon)
freeimage(hc_emoticons[p].speechbubble)
hc_emoticons[p].smiley_time = nil
hc_emoticons[p].emoticon = nil
hc_emoticons[p].speechbubble = nil
else
imagealpha(hc_emoticons[p].speechbubble, hc_emoticons[p].alpha)
imagealpha(hc_emoticons[p].emoticon, hc_emoticons[p].alpha)
table.insert(still_smiling_players, p)
end
else
table.insert(still_smiling_players, p)
end
end
hc_smiling_players = still_smiling_players
end
function hc_say_hook(p, text)
if player(p, "team") ~= 3 and player(p, "health") > 0 then
hc_check_for_smileys(p, text)
end
end
function hc_check_for_smileys(p, message)
for word in string.gmatch(message, "[^%s]+") do
for smiley, emoticon in pairs(HC_EMOTICONS) do
if word:match(smiley) then
hc_show_emoticon(p, emoticon)
return
end
end
end
end
function hc_show_emoticon(p, emoticon)
if hc_emoticons[p].emoticon ~= nil then
freeimage(hc_emoticons[p].emoticon)
else
table.insert(hc_smiling_players, p)
hc_emoticons[p].speechbubble = image(HC_EMOTICON_PATH .. "speechbubble.png", 0, 0, 200 + p)
hc_emoticons[p].alpha = HC_EMOTICON_FADE_IN_STEP
end
hc_emoticons[p].smiley_time = os.time()
hc_emoticons[p].emoticon = image(HC_EMOTICON_PATH .. emoticon .. ".png", 0, 0, 200 + p)
imagealpha(hc_emoticons[p].speechbubble, hc_emoticons[p].alpha)
imagealpha(hc_emoticons[p].emoticon, hc_emoticons[p].alpha)
end
____________
I'am Killer:twisted:
I make some emoticons
HC_EMOTICONS = {
["^[:=8][-^o]?[)%]3>]$"] = "smiling", --
["^%^[_]?%^$"] = "smiling", -- ^_^
["^[:=8][-^o]?[D]$"] = "smiling_big", --
["^[:=8][-^o]?[(%[]$"] = "frowning", --
["^[;][-^o]?[)%]D]$"] = "winking", --
["^[xX][-^o]?[D]+$"] = "laughing", -- xD
["^[lL1][oOöÖ0]+[lL1]+[sSzZ]*%??$"] = "laughing", -- lol
["^[hH][aAeEoOöÖ][hH][aAeEoOöÖ]$"] = "laughing", -- hehe
["^[rR][oO��0]+[fF][lL1]+$"] = "laughing", -- rofl
["^[:=8xX][-^o]?[pPbq]$"] = "cheeky", --
["^[:=8xX]['][-^o]?%($"] = "crying", -- :'(
["^[;][-]?%($"] = "crying", -- ;(
["^D[-^o]?[:=8xX]$"] = "crying", -- Dx
["^T[_.-]?T$"] = "crying", -- T_T
["^[:=8][-^o]?[oO0]$"] = "surprised", -- :O
["^[oO0][_.-]?[oO0]$"] = "surprised", -- O_o
["^[oO0][mM][gG]$"] = "surprised", -- omg
["^[:=8][-^o]?[/\\]$"] = "skeptical", -- :/
["^[:=8][-^o]?[sS]$"] = "uneasy", -- :S
["^>[:=8;][-^o]?[)%]D]$"] = "evil", -- >
["^>[_.-]<$"] = "angry", -- >_<
["^>[:=8;][-^o]?[(%[]$"] = "angry", -- >
["^<3$"] = "heart" -- <3
}
HC_EMOTICON_LINGER_TIME = 3
HC_EMOTICON_FADE_IN_STEP = 0.30
HC_EMOTICON_FADE_OUT_STEP = 0.20
HC_EMOTICON_OPACITY = 0.60
HC_EMOTICON_PATH = "gfx/hc/emoticons/"
function hc_emoticons_init()
addhook("say", "hc_say_hook")
addhook("ms100", "hc_ms100_hook")
addhook("leave", "hc_leave_hook")
hc_smiling_players = {}
hc_emoticons = {}
for i = 1, 32 do
hc_emoticons[i] = {}
end
end
hc_emoticons_init()
function hc_leave_hook(p, reason)
if hc_emoticons[p].smiley_time ~= nil then
freeimage(hc_emoticons[p].emoticon)
freeimage(hc_emoticons[p].speechbubble)
for i, id in ipairs(hc.chat.smiling_players) do
if id == p then
table.remove(hc.chat.smiling_players, i)
break
end
end
end
hc_emoticons[p] = {}
end
function hc_ms100_hook()
local still_smiling_players = {}
for i, p in ipairs(hc_smiling_players) do
local time = os.difftime(os.time(), hc_emoticons[p].smiley_time)
if time < HC_EMOTICON_LINGER_TIME and hc_emoticons[p].alpha < HC_EMOTICON_OPACITY then
hc_emoticons[p].alpha = hc_emoticons[p].alpha + HC_EMOTICON_FADE_IN_STEP
imagealpha(hc_emoticons[p].speechbubble, hc_emoticons[p].alpha)
imagealpha(hc_emoticons[p].emoticon, hc_emoticons[p].alpha)
table.insert(still_smiling_players, p)
elseif time > HC_EMOTICON_LINGER_TIME then
hc_emoticons[p].alpha = hc_emoticons[p].alpha - HC_EMOTICON_FADE_OUT_STEP
if hc_emoticons[p].alpha <= 0 then
freeimage(hc_emoticons[p].emoticon)
freeimage(hc_emoticons[p].speechbubble)
hc_emoticons[p].smiley_time = nil
hc_emoticons[p].emoticon = nil
hc_emoticons[p].speechbubble = nil
else
imagealpha(hc_emoticons[p].speechbubble, hc_emoticons[p].alpha)
imagealpha(hc_emoticons[p].emoticon, hc_emoticons[p].alpha)
table.insert(still_smiling_players, p)
end
else
table.insert(still_smiling_players, p)
end
end
hc_smiling_players = still_smiling_players
end
function hc_say_hook(p, text)
if player(p, "team") ~= 3 and player(p, "health") > 0 then
hc_check_for_smileys(p, text)
end
end
function hc_check_for_smileys(p, message)
for word in string.gmatch(message, "[^%s]+") do
for smiley, emoticon in pairs(HC_EMOTICONS) do
if word:match(smiley) then
hc_show_emoticon(p, emoticon)
return
end
end
end
end
function hc_show_emoticon(p, emoticon)
if hc_emoticons[p].emoticon ~= nil then
freeimage(hc_emoticons[p].emoticon)
else
table.insert(hc_smiling_players, p)
hc_emoticons[p].speechbubble = image(HC_EMOTICON_PATH .. "speechbubble.png", 0, 0, 200 + p)
hc_emoticons[p].alpha = HC_EMOTICON_FADE_IN_STEP
end
hc_emoticons[p].smiley_time = os.time()
hc_emoticons[p].emoticon = image(HC_EMOTICON_PATH .. emoticon .. ".png", 0, 0, 200 + p)
imagealpha(hc_emoticons[p].speechbubble, hc_emoticons[p].alpha)
imagealpha(hc_emoticons[p].emoticon, hc_emoticons[p].alpha)
end
____________
I'am Killer:twisted:
Re: Make Improve You're RolePlay
Lol u just copy it it is made by Happy camper and u copy u so late to copy it and claim it is yours GO TO HOME AND LEARN AGAIN HOW TO EAT FISH
Re: Make Improve You're RolePlay
Jaya stop talking to him he is 8 year old he is famous on unrealsoftware he steals files
g-one- Vice Leader
- Posts : 135
Reputation : 3
Birthday : 2003-06-26
Join date : 2013-06-06
Age : 20
Location : Pakistan
Humor : VERY HAPPY!
Re: Make Improve You're RolePlay
I'am 21 years old KID!
I edited his HC_EmotIcons
____________________
I'am Killer Twisted
I edited his HC_EmotIcons
____________________
I'am Killer Twisted
Re: Make Improve You're RolePlay
Hahahah Stole l have this scripts why u build now but l have a scripts from happy camper lol u LIE
Re: Make Improve You're RolePlay
I WANNA GO!
MUAHAHAHAHA!
Make me MOD
____________________
I'am Twisted Killer
MUAHAHAHAHA!
Make me MOD
____________________
I'am Twisted Killer
Re: Make Improve You're RolePlay
You leave this clan?
g-one- Vice Leader
- Posts : 135
Reputation : 3
Birthday : 2003-06-26
Join date : 2013-06-06
Age : 20
Location : Pakistan
Humor : VERY HAPPY!
Re: Make Improve You're RolePlay
I 'am A H-Admin,so GoogleChrome he give me his psition to me NOT you Smofuckers
______________________________________________________________________
_____________________
I'am Twisted Killer
______________________________________________________________________
_____________________
I'am Twisted Killer
Re: Make Improve You're RolePlay
I have RPG Tibia Biggest Edit by me!
plsss Add in your server,and how to upload
plsss Add in your server,and how to upload
Re: Make Improve You're RolePlay
And How to Apply In H-Admin i wanna apply H-Admin!
____________________
I'am Twisted Killer
____________________
I'am Twisted Killer
:: Ideas
Page 1 of 1
Permissions in this forum:
You cannot reply to topics in this forum
|
|
Mon Jun 23, 2014 6:38 pm by g-one
» PATRON
Sun Jun 22, 2014 7:51 pm by Guest
» apply for mod
Fri Jun 20, 2014 2:34 am by Cobra
» RpgTibiaServer
Sat Mar 01, 2014 8:55 pm by Starkkz
» here are some pets
Thu Nov 07, 2013 3:15 am by Starkkz
» Friends inviting
Sun Oct 20, 2013 7:59 pm by he
» xXx Application
Mon Oct 14, 2013 11:50 am by SmoKe
» Application
Sat Sep 21, 2013 4:11 pm by he
» Application
Sat Sep 14, 2013 1:59 am by []DT[] ADØN£ ALØN£
» Apply For Superman
Mon Aug 26, 2013 9:07 pm by Guest