LSL_BuiltIn_Commands_Interface.cs 35 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669
  1. /*
  2. * Copyright (c) Contributors, http://opensimulator.org/
  3. * See CONTRIBUTORS.TXT for a full list of copyright holders.
  4. *
  5. * Redistribution and use in source and binary forms, with or without
  6. * modification, are permitted provided that the following conditions are met:
  7. * * Redistributions of source code must retain the above copyright
  8. * notice, this list of conditions and the following disclaimer.
  9. * * Redistributions in binary form must reproduce the above copyright
  10. * notice, this list of conditions and the following disclaimer in the
  11. * documentation and/or other materials provided with the distribution.
  12. * * Neither the name of the OpenSim Project nor the
  13. * names of its contributors may be used to endorse or promote products
  14. * derived from this software without specific prior written permission.
  15. *
  16. * THIS SOFTWARE IS PROVIDED BY THE DEVELOPERS ``AS IS'' AND ANY
  17. * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
  18. * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
  19. * DISCLAIMED. IN NO EVENT SHALL THE CONTRIBUTORS BE LIABLE FOR ANY
  20. * DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
  21. * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
  22. * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
  23. * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
  24. * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
  25. * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  26. */
  27. using System.Collections.Generic;
  28. namespace OpenSim.Region.ScriptEngine.Common
  29. {
  30. public interface LSL_BuiltIn_Commands_Interface
  31. {
  32. // Interface used for loading and executing scripts
  33. string State { get; set; }
  34. OpenSim.Region.Environment.Interfaces.ICommander GetCommander(string name);
  35. double llSin(double f);
  36. double llCos(double f);
  37. double llTan(double f);
  38. double llAtan2(double x, double y);
  39. double llSqrt(double f);
  40. double llPow(double fbase, double fexponent);
  41. int llAbs(int i);
  42. double llFabs(double f);
  43. double llFrand(double mag);
  44. int llFloor(double f);
  45. int llCeil(double f);
  46. int llRound(double f);
  47. double llVecMag(LSL_Types.Vector3 v);
  48. LSL_Types.Vector3 llVecNorm(LSL_Types.Vector3 v);
  49. double llVecDist(LSL_Types.Vector3 a, LSL_Types.Vector3 b);
  50. LSL_Types.Vector3 llRot2Euler(LSL_Types.Quaternion r);
  51. LSL_Types.Quaternion llEuler2Rot(LSL_Types.Vector3 v);
  52. LSL_Types.Quaternion llAxes2Rot(LSL_Types.Vector3 fwd, LSL_Types.Vector3 left, LSL_Types.Vector3 up);
  53. LSL_Types.Vector3 llRot2Fwd(LSL_Types.Quaternion r);
  54. LSL_Types.Vector3 llRot2Left(LSL_Types.Quaternion r);
  55. LSL_Types.Vector3 llRot2Up(LSL_Types.Quaternion r);
  56. LSL_Types.Quaternion llRotBetween(LSL_Types.Vector3 start, LSL_Types.Vector3 end);
  57. void llWhisper(int channelID, string text);
  58. //void llSay(int channelID, string text);
  59. void llSay(int channelID, string text);
  60. void llShout(int channelID, string text);
  61. int llListen(int channelID, string name, string ID, string msg);
  62. void llListenControl(int number, int active);
  63. void llListenRemove(int number);
  64. void llSensor(string name, string id, int type, double range, double arc);
  65. void llSensorRepeat(string name, string id, int type, double range, double arc, double rate);
  66. void llSensorRemove();
  67. string llDetectedName(int number);
  68. string llDetectedKey(int number);
  69. string llDetectedOwner(int number);
  70. int llDetectedType(int number);
  71. LSL_Types.Vector3 llDetectedPos(int number);
  72. LSL_Types.Vector3 llDetectedVel(int number);
  73. LSL_Types.Vector3 llDetectedGrab(int number);
  74. LSL_Types.Quaternion llDetectedRot(int number);
  75. int llDetectedGroup(int number);
  76. int llDetectedLinkNumber(int number);
  77. void llDie();
  78. double llGround(LSL_Types.Vector3 offset);
  79. double llCloud(LSL_Types.Vector3 offset);
  80. LSL_Types.Vector3 llWind(LSL_Types.Vector3 offset);
  81. void llSetStatus(int status, int value);
  82. int llGetStatus(int status);
  83. void llSetScale(LSL_Types.Vector3 scale);
  84. LSL_Types.Vector3 llGetScale();
  85. void llSetColor(LSL_Types.Vector3 color, int face);
  86. double llGetAlpha(int face);
  87. void llSetAlpha(double alpha, int face);
  88. LSL_Types.Vector3 llGetColor(int face);
  89. void llSetTexture(string texture, int face);
  90. void llScaleTexture(double u, double v, int face);
  91. void llOffsetTexture(double u, double v, int face);
  92. void llRotateTexture(double rotation, int face);
  93. string llGetTexture(int face);
  94. void llSetPos(LSL_Types.Vector3 pos);
  95. //wiki: vector llGetPos()
  96. LSL_Types.Vector3 llGetPos();
  97. //wiki: vector llGetLocalPos()
  98. LSL_Types.Vector3 llGetLocalPos();
  99. //wiki: llSetRot(rotation rot)
  100. void llSetRot(LSL_Types.Quaternion rot);
  101. //wiki: rotation llGetRot()
  102. LSL_Types.Quaternion llGetRot();
  103. //wiki: rotation llGetLocalRot()
  104. LSL_Types.Quaternion llGetLocalRot();
  105. //wiki: llSetForce(vector force, integer local)
  106. void llSetForce(LSL_Types.Vector3 force, int local);
  107. //wiki: vector llGetForce()
  108. LSL_Types.Vector3 llGetForce();
  109. //wiki: integer llTarget(vector position, double range)
  110. int llTarget(LSL_Types.Vector3 position, double range);
  111. //wiki: llTargetRemove(integer number)
  112. void llTargetRemove(int number);
  113. //wiki: integer llRotTarget(rotation rot, double error)
  114. int llRotTarget(LSL_Types.Quaternion rot, double error);
  115. //wiki: integer llRotTargetRemove(integer number)
  116. void llRotTargetRemove(int number);
  117. //wiki: llMoveToTarget(vector target, double tau)
  118. void llMoveToTarget(LSL_Types.Vector3 target, double tau);
  119. //wiki: llStopMoveToTarget()
  120. void llStopMoveToTarget();
  121. //wiki: llApplyImpulse(vector force, integer local)
  122. void llApplyImpulse(LSL_Types.Vector3 force, int local);
  123. //wiki: llapplyRotationalImpulse(vector force, integer local)
  124. void llApplyRotationalImpulse(LSL_Types.Vector3 force, int local);
  125. //wiki: llSetTorque(vector torque, integer local)
  126. void llSetTorque(LSL_Types.Vector3 torque, int local);
  127. //wiki: vector llGetTorque()
  128. LSL_Types.Vector3 llGetTorque();
  129. //wiki: llSeForceAndTorque(vector force, vector torque, integer local)
  130. void llSetForceAndTorque(LSL_Types.Vector3 force, LSL_Types.Vector3 torque, int local);
  131. //wiki: vector llGetVel()
  132. LSL_Types.Vector3 llGetVel();
  133. //wiki: vector llGetAccel()
  134. LSL_Types.Vector3 llGetAccel();
  135. //wiki: vector llGetOmega()
  136. LSL_Types.Vector3 llGetOmega();
  137. //wiki: double llGetTimeOfDay()
  138. double llGetTimeOfDay();
  139. //wiki: double llGetWallclock()
  140. double llGetWallclock();
  141. //wiki: double llGetTime()
  142. double llGetTime();
  143. //wiki: llResetTime()
  144. void llResetTime();
  145. //wiki: double llGetAndResetTime()
  146. double llGetAndResetTime();
  147. //wiki (deprecated) llSound(string sound, double volume, integer queue, integer loop)
  148. void llSound();
  149. //wiki: llPlaySound(string sound, double volume)
  150. void llPlaySound(string sound, double volume);
  151. //wiki: llLoopSound(string sound, double volume)
  152. void llLoopSound(string sound, double volume);
  153. //wiki: llLoopSoundMaster(string sound, double volume)
  154. void llLoopSoundMaster(string sound, double volume);
  155. //wiki: llLoopSoundSlave(string sound, double volume)
  156. void llLoopSoundSlave(string sound, double volume);
  157. //wiki llPlaySoundSlave(string sound, double volume)
  158. void llPlaySoundSlave(string sound, double volume);
  159. //wiki: llTriggerSound(string sound, double volume)
  160. void llTriggerSound(string sound, double volume);
  161. //wiki: llStopSound()
  162. void llStopSound();
  163. //wiki: llPreloadSound(string sound)
  164. void llPreloadSound(string sound);
  165. //wiki: string llGetSubString(string src, integer start, integer end)
  166. string llGetSubString(string src, int start, int end);
  167. //wiki: string llDeleteSubString(string src, integer start, integer end)
  168. string llDeleteSubString(string src, int start, int end);
  169. //wiki string llInsertString(string dst, integer position, string src)
  170. string llInsertString(string dst, int position, string src);
  171. //wiki: string llToUpper(string source)
  172. string llToUpper(string source);
  173. //wiki: string llToLower(string source)
  174. string llToLower(string source);
  175. //wiki: integer llGiveMoney(key destination, integer amount)
  176. int llGiveMoney(string destination, int amount);
  177. //wiki: (deprecated)
  178. void llMakeExplosion();
  179. //wiki: (deprecated)
  180. void llMakeFountain();
  181. //wiki: (deprecated)
  182. void llMakeSmoke();
  183. //wiki: (deprecated)
  184. void llMakeFire();
  185. //wiki: llRezObject(string inventory, vector pos, vector rel, rotation rot, integer param)
  186. void llRezObject(string inventory, LSL_Types.Vector3 pos, LSL_Types.Quaternion rot, int param);
  187. //wiki: llLookAt(vector target, double strength, double damping)
  188. void llLookAt(LSL_Types.Vector3 target, double strength, double damping);
  189. //wiki: llStopLookAt()
  190. void llStopLookAt();
  191. //wiki: llSetTimerEvent(double sec)
  192. void llSetTimerEvent(double sec);
  193. //wiki: llSleep(double sec)
  194. void llSleep(double sec);
  195. //wiki: double llGetMass()
  196. double llGetMass();
  197. //wiki: llCollisionFilter(string name, key id, integer accept)
  198. void llCollisionFilter(string name, string id, int accept);
  199. //wiki: llTakeControls(integer controls, integer accept, integer pass_on)
  200. void llTakeControls(int controls, int accept, int pass_on);
  201. //wiki: llReleaseControls()
  202. void llReleaseControls();
  203. //wiki: llAttachToAvatar(integer attachment)
  204. void llAttachToAvatar(int attachment);
  205. //wiki: llDetachFromAvatar()
  206. void llDetachFromAvatar();
  207. //wiki: (deprecated) llTakeCamera()
  208. void llTakeCamera();
  209. //wiki: (deprecated) llReleaseCamera()
  210. void llReleaseCamera();
  211. //wiki: key llGetOwner()
  212. string llGetOwner();
  213. //wiki: llInstantMessage(key user, string message)
  214. void llInstantMessage(string user, string message);
  215. //wiki: llEmail(string address, string subject, string message)
  216. void llEmail(string address, string subject, string message);
  217. //wiki: llGetNextEmail(string address, string subject)
  218. void llGetNextEmail(string address, string subject);
  219. //wiki: key llGetKey()
  220. string llGetKey();
  221. //wiki: llSetBuoyancy(double buoyancy)
  222. void llSetBuoyancy(double buoyancy);
  223. //wiki: llSetHoverHeight(double height, integer water, double tau)
  224. void llSetHoverHeight(double height, int water, double tau);
  225. //wiki: llStopHover
  226. void llStopHover();
  227. //wiki: llMinEventDelay(double delay)
  228. void llMinEventDelay(double delay);
  229. //wiki: (deprecated) llSoundPreload()
  230. void llSoundPreload();
  231. //wiki: llRotLookAt(rotation target, double strength, double damping)
  232. void llRotLookAt(LSL_Types.Quaternion target, double strength, double damping);
  233. //wiki: integer llStringLength(string str)
  234. int llStringLength(string str);
  235. //wiki: llStartAnimation(string anim)
  236. void llStartAnimation(string anim);
  237. //wiki: llStopAnimation(string anim)
  238. void llStopAnimation(string anim);
  239. //wiki: (deprecated) llPointAt
  240. void llPointAt();
  241. //wiki: (deprecated) llStopPointAt
  242. void llStopPointAt();
  243. //wiki: llTargetOmega(vector axis, double spinrate, double gain)
  244. void llTargetOmega(LSL_Types.Vector3 axis, double spinrate, double gain);
  245. //wiki: integer llGetStartParameter()
  246. int llGetStartParameter();
  247. //wiki: llGodLikeRezObject(key inventory, vector pos)
  248. void llGodLikeRezObject(string inventory, LSL_Types.Vector3 pos);
  249. //wiki: llRequestPermissions(key agent, integer perm)
  250. void llRequestPermissions(string agent, int perm);
  251. //wiki: key llGetPermissionsKey()
  252. string llGetPermissionsKey();
  253. //wiki: integer llGetPermissions()
  254. int llGetPermissions();
  255. //wiki integer llGetLinkNumber()
  256. int llGetLinkNumber();
  257. //wiki: llSetLinkColor(integer linknumber, vector color, integer face)
  258. void llSetLinkColor(int linknumber, LSL_Types.Vector3 color, int face);
  259. //wiki: llCreateLink(key target, integer parent)
  260. void llCreateLink(string target, int parent);
  261. //wiki: llBreakLink(integer linknum)
  262. void llBreakLink(int linknum);
  263. //wiki: llBreakAllLinks()
  264. void llBreakAllLinks();
  265. //wiki: key llGetLinkKey(integer linknum)
  266. string llGetLinkKey(int linknum);
  267. //wiki: llGetLinkName(integer linknum)
  268. string llGetLinkName(int linknum);
  269. //wiki: integer llGetInventoryNumber(integer type)
  270. int llGetInventoryNumber(int type);
  271. //wiki: string llGetInventoryName(integer type, integer number)
  272. string llGetInventoryName(int type, int number);
  273. //wiki: llSetScriptState(string name, integer run)
  274. void llSetScriptState(string name, int run);
  275. //wiki: double llGetEnergy()
  276. double llGetEnergy();
  277. //wiki: llGiveInventory(key destination, string inventory)
  278. void llGiveInventory(string destination, string inventory);
  279. //wiki: llRemoveInventory(string item)
  280. void llRemoveInventory(string item);
  281. //wiki: llSetText(string text, vector color, double alpha)
  282. void llSetText(string text, LSL_Types.Vector3 color, double alpha);
  283. //wiki: double llWater(vector offset)
  284. double llWater(LSL_Types.Vector3 offset);
  285. //wiki: llPassTouches(integer pass)
  286. void llPassTouches(int pass);
  287. //wiki: key llRequestAgentData(key id, integer data)
  288. string llRequestAgentData(string id, int data);
  289. //wiki: key llRequestInventoryData(string name)
  290. string llRequestInventoryData(string name);
  291. //wiki: llSetDamage(double damage)
  292. void llSetDamage(double damage);
  293. //wiki: llTeleportAgentHome(key agent)
  294. void llTeleportAgentHome(string agent);
  295. //wiki: llModifyLand(integer action, integer brush)
  296. void llModifyLand(int action, int brush);
  297. //wiki: llCollisionSound(string impact_sound, double impact_volume)
  298. void llCollisionSound(string impact_sound, double impact_volume);
  299. //wiki: llCollisionSprite(string impact_sprite)
  300. void llCollisionSprite(string impact_sprite);
  301. //wiki: string llGetAnimation(key id)
  302. string llGetAnimation(string id);
  303. //wiki: llResetScript()
  304. void llResetScript();
  305. //wiki: llMessageLinked(integer linknum, integer num, string str, key id)
  306. void llMessageLinked(int linknum, int num, string str, string id);
  307. //wiki: llPushObject(key target, vector impulse, vector ang_impulse, integer local)
  308. void llPushObject(string target, LSL_Types.Vector3 impulse, LSL_Types.Vector3 ang_impulse, int local);
  309. //wiki: llPassCollisions(integer pass)
  310. void llPassCollisions(int pass);
  311. //wiki: string llGetScriptName()
  312. string llGetScriptName();
  313. //wiki: integer llGetNumberOfSides()
  314. int llGetNumberOfSides();
  315. //wiki: rotation llAxisAngle2Rot(vector axis, double angle)
  316. LSL_Types.Quaternion llAxisAngle2Rot(LSL_Types.Vector3 axis, double angle);
  317. //wiki: vector llRot2Axis(rotation rot)
  318. LSL_Types.Vector3 llRot2Axis(LSL_Types.Quaternion rot);
  319. void llRot2Angle();
  320. //wiki: double llAcos(double val)
  321. double llAcos(double val);
  322. //wiki: double llAsin(double val)
  323. double llAsin(double val);
  324. //wiki: double llAngleBetween(rotation a, rotation b)
  325. double llAngleBetween(LSL_Types.Quaternion a, LSL_Types.Quaternion b);
  326. //wiki: string llGetInventoryKey(string name)
  327. string llGetInventoryKey(string name);
  328. //wiki: llAllowInventoryDrop(integer add)
  329. void llAllowInventoryDrop(int add);
  330. //wiki: vector llGetSunDirection()
  331. LSL_Types.Vector3 llGetSunDirection();
  332. //wiki: vector llGetTextureOffset(integer face)
  333. LSL_Types.Vector3 llGetTextureOffset(int face);
  334. //wiki: vector llGetTextureScale(integer side)
  335. LSL_Types.Vector3 llGetTextureScale(int side);
  336. //wiki: double llGetTextureRot(integer side)
  337. double llGetTextureRot(int side);
  338. //wiki: integer llSubStringIndex(string source, string pattern)
  339. int llSubStringIndex(string source, string pattern);
  340. //wiki: key llGetOwnerKey(key id)
  341. string llGetOwnerKey(string id);
  342. //wiki: vector llGetCenterOfMass()
  343. LSL_Types.Vector3 llGetCenterOfMass();
  344. //wiki: list llListSort(list src, integer stride, integer ascending)
  345. LSL_Types.list llListSort(LSL_Types.list src, int stride, int ascending);
  346. //integer llGetListLength(list src)
  347. int llGetListLength(LSL_Types.list src);
  348. //wiki: integer llList2Integer(list src, integer index)
  349. int llList2Integer(LSL_Types.list src, int index);
  350. //wiki: double llList2double(list src, integer index)
  351. double llList2Float(LSL_Types.list src, int index);
  352. double osList2Double(LSL_Types.list src, int index);
  353. //wiki: string llList2String(list src, integer index)
  354. string llList2String(LSL_Types.list src, int index);
  355. //wiki: key llList2Key(list src, integer index)
  356. string llList2Key(LSL_Types.list src, int index);
  357. //wiki: vector llList2Vector(list src, integer index)
  358. LSL_Types.Vector3 llList2Vector(LSL_Types.list src, int index);
  359. //wiki rotation llList2Rot(list src, integer index)
  360. LSL_Types.Quaternion llList2Rot(LSL_Types.list src, int index);
  361. //wiki: list llList2List(list src, integer start, integer end)
  362. LSL_Types.list llList2List(LSL_Types.list src, int start, int end);
  363. //wiki: llDeleteSubList(list src, integer start, integer end)
  364. LSL_Types.list llDeleteSubList(LSL_Types.list src, int start, int end);
  365. //wiki: integer llGetListEntryType( list src, integer index )
  366. int llGetListEntryType(LSL_Types.list src, int index);
  367. //wiki: string llList2CSV( list src )
  368. string llList2CSV(LSL_Types.list src);
  369. //wiki: list llCSV2List( string src )
  370. LSL_Types.list llCSV2List(string src);
  371. //wiki: list llListRandomize( list src, integer stride )
  372. LSL_Types.list llListRandomize(LSL_Types.list src, int stride);
  373. //wiki: list llList2ListStrided( list src, integer start, integer end, integer stride )
  374. LSL_Types.list llList2ListStrided(LSL_Types.list src, int start, int end, int stride);
  375. //wiki: vector llGetRegionCorner( )
  376. LSL_Types.Vector3 llGetRegionCorner();
  377. //wiki: list llListInsertList( list dest, list src, integer start )
  378. LSL_Types.list llListInsertList(LSL_Types.list dest, LSL_Types.list src, int start);
  379. //wiki: integer llListFindList( list src, list test )
  380. int llListFindList(LSL_Types.list src, LSL_Types.list test);
  381. //wiki: string llGetObjectName()
  382. string llGetObjectName();
  383. //wiki: llSetObjectName(string name)
  384. void llSetObjectName(string name);
  385. //wiki: string llGetDate()
  386. string llGetDate();
  387. //wiki: integer llEdgeOfWorld(vector pos, vector dir)
  388. int llEdgeOfWorld(LSL_Types.Vector3 pos, LSL_Types.Vector3 dir);
  389. //wiki: integer llGetAgentInfo(key id)
  390. int llGetAgentInfo(string id);
  391. //wiki: llAdjustSoundVolume(double volume)
  392. void llAdjustSoundVolume(double volume);
  393. //wiki: llSetSoundQueueing(integer queue)
  394. void llSetSoundQueueing(int queue);
  395. //wiki: llSetSoundRadius(double radius)
  396. void llSetSoundRadius(double radius);
  397. //wiki: string llKey2Name(key id)
  398. string llKey2Name(string id);
  399. //wiki: llSetTextureAnim(integer mode, integer face, integer sizex, integer sizey, double start, double length, double rate)
  400. void llSetTextureAnim(int mode, int face, int sizex, int sizey, double start, double length, double rate);
  401. //wiki: llTriggerSoundLimited(string sound, double volume, vector top_north_east, vector bottom_south_west)
  402. void llTriggerSoundLimited(string sound, double volume, LSL_Types.Vector3 top_north_east,
  403. LSL_Types.Vector3 bottom_south_west);
  404. //wiki: llEjectFromLand(key pest)
  405. void llEjectFromLand(string pest);
  406. LSL_Types.list llParseString2List(string str, LSL_Types.list separators, LSL_Types.list spacers);
  407. //wiki: integer llOverMyLand(key id)
  408. int llOverMyLand(string id);
  409. //wiki: key llGetLandOwnerAt(vector pos)
  410. string llGetLandOwnerAt(LSL_Types.Vector3 pos);
  411. //wiki: key llGetNotecardLine(string name, integer line)
  412. string llGetNotecardLine(string name, int line);
  413. //wiki: vector llGetAgentSize(key id)
  414. LSL_Types.Vector3 llGetAgentSize(string id);
  415. //wiki: integer llSameGroup(key agent)
  416. int llSameGroup(string agent);
  417. //wiki: llUnSit(key id)
  418. void llUnSit(string id);
  419. //wiki: vector llGroundSlope(vector offset)
  420. LSL_Types.Vector3 llGroundSlope(LSL_Types.Vector3 offset);
  421. //wiki: vector llGroundNormal(vector offset)
  422. LSL_Types.Vector3 llGroundNormal(LSL_Types.Vector3 offset);
  423. //wiki: vector llGroundContour(vector offset)
  424. LSL_Types.Vector3 llGroundContour(LSL_Types.Vector3 offset);
  425. //wiki: integer llGetAttached()
  426. int llGetAttached();
  427. //wiki: integer llGetFreeMemory()
  428. int llGetFreeMemory();
  429. //wiki: string llGetRegionName()
  430. string llGetRegionName();
  431. //wiki: double llGetRegionTimeDilation()
  432. double llGetRegionTimeDilation();
  433. //wiki: double llGetRegionFPS()
  434. double llGetRegionFPS();
  435. //wiki: llParticleSystem(List<Object> rules
  436. void llParticleSystem(LSL_Types.list rules);
  437. //wiki: llGroundRepel(double height, integer water, double tau)
  438. void llGroundRepel(double height, int water, double tau);
  439. void llGiveInventoryList();
  440. //wiki: llSetVehicleType(integer type)
  441. void llSetVehicleType(int type);
  442. //wiki: llSetVehicledoubleParam(integer param, double value)
  443. void llSetVehicledoubleParam(int param, double value);
  444. //wiki: llSetVehicleVectorParam(integer param, vector vec)
  445. void llSetVehicleVectorParam(int param, LSL_Types.Vector3 vec);
  446. //wiki: llSetVehicleRotationParam(integer param, rotation rot)
  447. void llSetVehicleRotationParam(int param, LSL_Types.Quaternion rot);
  448. //wiki: llSetVehicleFlags(integer flags)
  449. void llSetVehicleFlags(int flags);
  450. //wiki: llRemoveVehicleFlags(integer flags)
  451. void llRemoveVehicleFlags(int flags);
  452. //wiki: llSitTarget(vector offset, rotation rot)
  453. void llSitTarget(LSL_Types.Vector3 offset, LSL_Types.Quaternion rot);
  454. //wiki key llAvatarOnSitTarget()
  455. string llAvatarOnSitTarget();
  456. //wiki: llAddToLandPassList(key avatar, double hours)
  457. void llAddToLandPassList(string avatar, double hours);
  458. //wiki: llSetTouchText(string text)
  459. void llSetTouchText(string text);
  460. //wiki: llSetSitText(string text)
  461. void llSetSitText(string text);
  462. //wiki: llSetCameraEyeOffset(vector offset)
  463. void llSetCameraEyeOffset(LSL_Types.Vector3 offset);
  464. //wiki: llSeteCameraAtOffset(vector offset)
  465. void llSetCameraAtOffset(LSL_Types.Vector3 offset);
  466. //
  467. string llDumpList2String(LSL_Types.list src, string seperator);
  468. //wiki: integer llScriptDanger(vector pos)
  469. void llScriptDanger(LSL_Types.Vector3 pos);
  470. //wiki: llDialog( key avatar, string message, list buttons, integer chat_channel )
  471. void llDialog(string avatar, string message, LSL_Types.list buttons, int chat_channel);
  472. //wiki: llVolumeDetect(integer detect)
  473. void llVolumeDetect(int detect);
  474. //wiki: llResetOtherScript(string name)
  475. void llResetOtherScript(string name);
  476. //wiki: integer llGetScriptState(string name)
  477. int llGetScriptState(string name);
  478. //wiki: (deprecated)
  479. void llRemoteLoadScript();
  480. //wiki: llSetRemoteScriptAccessPin(integer pin)
  481. void llSetRemoteScriptAccessPin(int pin);
  482. //wiki: llRemoteLoadScriptPin(key target, string name, integer pin, integer running, integer start_param)
  483. void llRemoteLoadScriptPin(string target, string name, int pin, int running, int start_param);
  484. //wiki: llOpenRemoteDataChannel()
  485. void llOpenRemoteDataChannel();
  486. //wiki: key llSendRemoteData(key channel, string dest, integer idata, string sdata)
  487. string llSendRemoteData(string channel, string dest, int idata, string sdata);
  488. //wiki: llRemoteDataReply(key channel, key message_id, string sdata, integer idata)
  489. void llRemoteDataReply(string channel, string message_id, string sdata, int idata);
  490. //wiki: llCloseRemoteDataChannel(key channel)
  491. void llCloseRemoteDataChannel(string channel);
  492. //wiki: string llMD5String(string src, integer nonce)
  493. string llMD5String(string src, int nonce);
  494. //wiki: llSetPrimitiveParams( list rules )
  495. void llSetPrimitiveParams(LSL_Types.list rules);
  496. //wiki: llSetLinkPrimitiveParams(integer linknumber, list rules )
  497. void llSetLinkPrimitiveParams(int linknumber, LSL_Types.list rules);
  498. //wiki: string llStringToBase64(string str)
  499. string llStringToBase64(string str);
  500. //wiki: string llBase64ToString(string str)
  501. string llBase64ToString(string str);
  502. //wiki: (deprecated)
  503. void llXorBase64Strings();
  504. //wiki: llRemoteDataSetRegion()
  505. void llRemoteDataSetRegion();
  506. //wiki: double llLog10(double val)
  507. double llLog10(double val);
  508. //wiki: double llLog(double val)
  509. double llLog(double val);
  510. //wiki: list llGetAnimationList( key id )
  511. LSL_Types.list llGetAnimationList(string id);
  512. //wiki: llSetParcelMusicURL(string url)
  513. void llSetParcelMusicURL(string url);
  514. //wiki: vector llGetRootPosition()
  515. LSL_Types.Vector3 llGetRootPosition();
  516. //wiki: rotation llGetRootRotation()
  517. LSL_Types.Quaternion llGetRootRotation();
  518. //wiki: string llGetObjectDesc()
  519. string llGetObjectDesc();
  520. //wiki: llSetObjectDesc(string desc)
  521. void llSetObjectDesc(string desc);
  522. //wiki: key llGetCreator()
  523. string llGetCreator();
  524. //wiki: string llGetTimestamp()
  525. string llGetTimestamp();
  526. //wiki: llSetLinkAlpha(integer linknumber, double alpha, integer face)
  527. void llSetLinkAlpha(int linknumber, double alpha, int face);
  528. //wiki: integer llGetNumberOfPrims()
  529. int llGetNumberOfPrims();
  530. //wiki: key llGetNumberOfNotecardLines(string name)
  531. string llGetNumberOfNotecardLines(string name);
  532. //wiki: list llGetBoundingBox( key object )
  533. LSL_Types.list llGetBoundingBox(string obj);
  534. //wiki: vector llGetGeometricCenter()
  535. LSL_Types.Vector3 llGetGeometricCenter();
  536. void llGetPrimitiveParams();
  537. //wiki: string llIntegerToBase64(integer number)
  538. string llIntegerToBase64(int number);
  539. //wiki integer llBase64ToInteger(string str)
  540. int llBase64ToInteger(string str);
  541. //wiki: double llGetGMTclock()
  542. double llGetGMTclock();
  543. //wiki: string llGetSimulatorHostname()
  544. string llGetSimulatorHostname();
  545. //llSetLocalRot(rotation rot)
  546. void llSetLocalRot(LSL_Types.Quaternion rot);
  547. //wiki: list llParseStringKeepNulls( string src, list separators, list spacers )
  548. LSL_Types.list llParseStringKeepNulls(string src, LSL_Types.list seperators, LSL_Types.list spacers);
  549. //wiki: llRezAtRoot(string inventory, vector position, vector velocity, rotation rot, integer param)
  550. void llRezAtRoot(string inventory, LSL_Types.Vector3 position, LSL_Types.Vector3 velocity,
  551. LSL_Types.Quaternion rot, int param);
  552. //wiki: integer llGetObjectPermMask(integer mask)
  553. int llGetObjectPermMask(int mask);
  554. //wiki: llSetObjectPermMask(integer mask, integer value)
  555. void llSetObjectPermMask(int mask, int value);
  556. //wiki integer llGetInventoryPermMask(string item, integer mask)
  557. int llGetInventoryPermMask(string item, int mask);
  558. //wiki: llSetInventoryPermMask(string item, integer mask, integer value)
  559. void llSetInventoryPermMask(string item, int mask, int value);
  560. //wiki: key llGetInventoryCreator(string item)
  561. string llGetInventoryCreator(string item);
  562. //wiki: llOwnerSay(string msg)
  563. void llOwnerSay(string msg);
  564. //wiki: key llRequestSimulatorData(string simulator, integer data)
  565. void llRequestSimulatorData(string simulator, int data);
  566. //wiki: llForceMouselook(integer mouselook)
  567. void llForceMouselook(int mouselook);
  568. //wiki: double llGetObjectMass(key id)
  569. double llGetObjectMass(string id);
  570. LSL_Types.list llListReplaceList(LSL_Types.list dest, LSL_Types.list src, int start, int end);
  571. //wiki: llLoadURL(key avatar_id, string message, string url)
  572. void llLoadURL(string avatar_id, string message, string url);
  573. //wiki: llParcelMediaCommandList( list commandList )
  574. void llParcelMediaCommandList(LSL_Types.list commandList);
  575. void llParcelMediaQuery();
  576. //wiki integer llModPow(integer a, integer b, integer c)
  577. int llModPow(int a, int b, int c);
  578. //wiki: integer llGetInventoryType(string name)
  579. int llGetInventoryType(string name);
  580. //wiki: llSetPayPrice( integer price, list quick_pay_buttons )
  581. void llSetPayPrice(int price, LSL_Types.list quick_pay_buttons);
  582. //wiki: vector llGetCameraPos()
  583. LSL_Types.Vector3 llGetCameraPos();
  584. //wiki rotation llGetCameraRot()
  585. LSL_Types.Quaternion llGetCameraRot();
  586. //wiki: (deprecated)
  587. void llSetPrimURL();
  588. //wiki: (deprecated)
  589. void llRefreshPrimURL();
  590. //wiki: string llEscapeURL(string url)
  591. string llEscapeURL(string url);
  592. //wiki: string llUnescapeURL(string url)
  593. string llUnescapeURL(string url);
  594. //wiki: llMapDestination(string simname, vector pos, vector look_at)
  595. void llMapDestination(string simname, LSL_Types.Vector3 pos, LSL_Types.Vector3 look_at);
  596. //wiki: llAddToLandBanList(key avatar, double hours)
  597. void llAddToLandBanList(string avatar, double hours);
  598. //wiki: llRemoveFromLandPassList(key avatar)
  599. void llRemoveFromLandPassList(string avatar);
  600. //wiki: llRemoveFromLandBanList(key avatar)
  601. void llRemoveFromLandBanList(string avatar);
  602. //wiki: llSetCameraParams( list rules )
  603. void llSetCameraParams(LSL_Types.list rules);
  604. //wiki: llClearCameraParams()
  605. void llClearCameraParams();
  606. //wiki: double llListStatistics( integer operation, list src )
  607. double llListStatistics(int operation, LSL_Types.list src);
  608. //wiki: integer llGetUnixTime()
  609. int llGetUnixTime();
  610. //wiki: integer llGetParcelFlags(vector pos)
  611. int llGetParcelFlags(LSL_Types.Vector3 pos);
  612. //wiki: integer llGetRegionFlags()
  613. int llGetRegionFlags();
  614. //wiki: string llXorBase64StringsCorrect(string str1, string str2)
  615. string llXorBase64StringsCorrect(string str1, string str2);
  616. string llHTTPRequest(string url, LSL_Types.list parameters, string body);
  617. //wiki: llResetLandBanList()
  618. void llResetLandBanList();
  619. //wiki: llResetLandPassList()
  620. void llResetLandPassList();
  621. //wiki integer llGetParcelPrimCount(vector pos, integer category, integer sim_wide)
  622. int llGetParcelPrimCount(LSL_Types.Vector3 pos, int category, int sim_wide);
  623. //wiki: list llGetParcelPrimOwners( vector pos )
  624. LSL_Types.list llGetParcelPrimOwners(LSL_Types.Vector3 pos);
  625. //wiki: integer llGetObjectPrimCount(key object_id)
  626. int llGetObjectPrimCount(string object_id);
  627. //wiki: integer llGetParcelMaxPrims( vector pos, integer sim_wide )
  628. int llGetParcelMaxPrims(LSL_Types.Vector3 pos, int sim_wide);
  629. //wiki list llGetParcelDetails(vector pos, list params)
  630. LSL_Types.list llGetParcelDetails(LSL_Types.Vector3 pos, LSL_Types.list param);
  631. string llStringTrim(string src, int type);
  632. LSL_Types.list llGetObjectDetails(string id, LSL_Types.list args);
  633. //OpenSim functions
  634. string osSetDynamicTextureURL(string dynamicID, string contentType, string url, string extraParams, int timer);
  635. string osSetDynamicTextureURLBlend(string dynamicID, string contentType, string url, string extraParams,
  636. int timer, int alpha);
  637. string osSetDynamicTextureData(string dynamicID, string contentType, string data, string extraParams, int timer);
  638. string osSetDynamicTextureDataBlend(string dynamicID, string contentType, string data, string extraParams,
  639. int timer, int alpha);
  640. double osTerrainGetHeight(int x, int y);
  641. int osTerrainSetHeight(int x, int y, double val);
  642. int osRegionRestart(double seconds);
  643. void osRegionNotice(string msg);
  644. bool osConsoleCommand(string Command);
  645. void osSetParcelMediaURL(string url);
  646. void osSetPrimFloatOnWater(int floatYN);
  647. //texture draw functions
  648. string osMovePen(string drawList, int x, int y);
  649. string osDrawLine(string drawList, int startX, int startY, int endX, int endY);
  650. string osDrawLine(string drawList, int endX, int endY);
  651. string osDrawText(string drawList, string text);
  652. string osDrawEllipse(string drawList, int width, int height);
  653. string osDrawRectangle(string drawList, int width, int height);
  654. string osDrawFilledRectangle(string drawList, int width, int height);
  655. string osSetFontSize(string drawList, int fontSize);
  656. string osSetPenSize(string drawList, int penSize);
  657. string osSetPenColour(string drawList, string colour);
  658. string osDrawImage(string drawList, int width, int height, string imageUrl);
  659. }
  660. }