Could you give an example of how to see which player is currently playing (I.E.: local = UnitIsUnit(player) --Use this to determine which foodbuff/pots to use.)
|
|
Source code |
1 |
if UnitName("player") == "some_mage_character" then function_to_define_mage_food() else ... end
|
Could you give an example of how to see which player is currently playing (I.E.: local = UnitIsUnit(player) --Use this to determine which foodbuff/pots to use.)
i think what u looking for is something like:
![]()
Source code
1if UnitName("player") == "some_mage_character" then function_to_define_mage_food() else ... end
|
|
Source code |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 |
function IsBuddyOnline(friendName)
local friendCnt = GetFriendCount("Friend") -- Get the number of names in the friends list
-- Go through the list and see if the given name is online
for idx = 1, friendCnt do
local name, groupID, online, eachOther, unmodifiable, top, killMeCount, revengeCount, relationType, relationLv = GetFriendInfo("Friend", idx)
if name == friendName then -- The given name passed in must match exactly, including case
return online
end
end
return false
end
|
i believe he needs to modify his script to use the proper food depending on which character he plays.
so if he plays on his melee character to use patt food and matt food if plays on his mage one.
This post has been edited 1 times, last edit by "SirMasterBlue" (Dec 28th 2014, 4:46pm) with the following reason: Clification
Yeah, if you want the name of your own character then yes achilleas1's answer is correct. I'll chalk up my mistake to insufficent coffee early in the morning when I answered that (yes, I'm making excuses. Shut Up!).
Well as far as I know, there isn't a simple way to check for a player being online.
@Mavengus: I know that FD has two or three threads running. You might be better served to ask over on those threads and maybe spark up a discussion. Welcome back.Hi,
About half a year ago, the FuzzyDiyce thread was very active, and I was moving from DIYCE to FD. But then I also decided to quit playing. Now, after a half year break, I returned to the game, and I see the FD thread has become quite silent. The DIYCE thread seems a more alive. Any update on whether FD is still being developed?
@RoMage: I have ZZBar and all of it's components. The original post that sparked Peryl's comment was about trying to add a playercheck to the DIYCE for the people that play in My house. We share a couple of PCs and laptops and are all at different levels but have similar classes.Well as far as I know, there isn't a simple way to check for a player being online.
If you wonder if friend is online... just use ZZInfoBar, can be set to show only online friends as drop down list when you point to friend icon... right click to invite any of names in group, left click to whisper a friend... very useful IMHO.
It has the same setup for guild list.
@RoMage: I have ZZBar and all of it's components. The original post that sparked Peryl's comment was about trying to add a playercheck to the DIYCE for the people that play in My house. We share a couple of PCs and laptops and are all at different levels but have similar classes.
|
|
Source code |
1 2 3 4 5 6 7 8 |
elseif (Skill[x].ignoretimer or GetDIYCETimerValue(Skill[x].timer) == 0) and CD(Skill[x].name) then
--if talktome then Msg("- "..Skill[x].name) end
CastSpellByName(Skill[x].name)
-- Msg("using "..Skill[x].name)
if Skill[x].name == timer_lastaction then
StartDIYCETimer(Skill[x].timer)
end
return true
|
|
|
Source code |
1 |
local TheGlobal = TheGlobal |
|
|
Source code |
1 |
local TheGlobal = _G.TheGlobal |
This post has been edited 2 times, last edit by "Peryl" (Jan 27th 2015, 3:31am) with the following reason: Added info on "local" globals