Dev commands

From Jfish Wiki
Jump to: navigation, search

These are commands you can send to a jFish HUD, and any eventual responses.

Legend:

  • CSV - A list of values you can parse with llCSV2List
  • eventchan: a channel generated by your avatar, you will need an avatar's UUID to determine these channels. See below.
  • W: Whispered (10m radius from HUD)
  • S: Said (20m radius from HUD)
  • Sh: Shouted (96m radius from HUD)
  • R: Region-said (sim-wide)
  • Rt: Region-said to (only the owner's attachments can hear)

ALWAYS check the owner of the message sender ( llGetOwnerKey() ).


Getting eventChan:

integer integerLizeKey(string id, integer salt)
{
    return (integer)("0x1"+llGetSubString(id, 0, 6))+salt;
}
eventchan = -llAbs(integerLizeKey((key)player, 8008135));


eventchan[edit]

getPlayerData
Returns Rt to sender, on the targetted player's eventchan: CSV("jFishPlayerData", (bool)rod_equipped, (int)accountstatus, (int)skill, (int)clublevel, (string)baitname, (float)baitsize, (float)sinkspeed)
Accountstatus legend: 1 = registered, 2 = mod, 3 = admin, bait stats added in 1.002. Sinkspeed and baitsize do not take special effects into consideration


getPFX
Return Rt to sender, on the targetted player's eventchan: CSV("PFX", CSV(potion_string))
Notice: This is the same return value as in dev messages, so this is also sent every time the player's effects changes.


getDrunkness
Return Rt to sender, on the targetted player's eventchan: CSV("drunkness", (int)drunkness_level, (string)drunkness_name)
Notice: This is the same return value as in dev messages, so this is also sent every time the player's drunkness changes.