User Tools

Site Tools


main_chproperties

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
main_chproperties [2014/06/20 00:46] astarkmain_chproperties [2014/06/20 03:15] (current) – removed vodur
Line 1: Line 1:
-<code lua> 
-local nm=mob.name 
-for k,v in pairs(getplayerlist()) do 
-  mob.tell(v, "My name is "..nm) 
-end 
-</code> 
- 
-^  ^Return Type | 
-^name |string | 
-^  |  | 
- 
-|!Function |!Argument |!Result |!Note |!Valid args | 
-|[[ChMdo$mdo]] |string |none |interpret argument as if mob typed it |mdo("string") | 
-|[[ChSay$say]] |string |none |accepts variables |say(""[,values]) | 
-|[[ChEmote$emote]] |string |none |accepts variables |emote(""[,values]) | 
-|[[ChAsound$asound]] |string |none |accepts variables |asound [string] : echo to all the rooms around the mobile | 
-|[[ChGecho$gecho]] |string |none |gecho [string] : echo to all active players in the game | 
-|[[ChZecho$zecho]] |string |none |zecho [string] : echo to all players in the same area | 
-|[[ChKill$kill]] |string |none |kill [victim] : start combat with a player | 
-|[[ChAssist$assist]] |string |none |assist [victim] : assist another mob or player | 
-|[[ChJunk$junk]] |string |none |junk [item$all$all.xxx] : destroy item(s) in inventory | 
-|[[ChEcho$echo]] |string |none |echo [string] : echo to room | 
-|[[ChEchoaround$echoaround]] |string |none |echoaround [victim] [string] : echo to all in room save victim | 
-|[[ChEchoat$echoat]] |string |none |echoat [victim] (string) : echo to victim (in same room) | 
-|[[ChMload$mload]] |string |[[CHProperties$CH]] |mload [vnum/rvnum] : load a mobile | 
-|[[ChOload$oload]] |number |[[OBJProperties$OBJ]] |oload(vnum): load an object to inventory, function returns the OBJ | 
-|[[ChPurge$purge]] |string |none |purge (target) : purge all objs and mobs in room or target | 
-|[[ChGoto$goto]] |string |none |goto [location] : go to location, wrandom for random room in world, random for random room in area | 
-|[[ChAt$at]] |string |none |at [location] [command] : execute command at location | 
-|[[ChTransfer$transfer]] |string |none |transfer [victim$'all'] [location] : move target or all in room | 
-|[[ChGtransfer$gtransfer]] |string |none |gtransfer [victim] [location] : move group of victim to location | 
-|[[ChOtransfer$otransfer]] |string |none |otransfer [object] [location] : move object from room | 
-|[[ChForce$force]] |string |none |force [victim] [command] : victim executes command | 
-|[[ChGforce$gforce]] |string |none |gforce [victim] [command] : victim's group executes command | 
-|[[ChVforce$vforce]] |string |none |vforce [vnum] [command] : all mobs of vnum execute command | 
-|[[ChCast$cast]] |string |none |cast [spell] (target) : cast spell without failure and cost | 
-|[[ChDamage$damage]] |string |none |damage [victim$'all'] [min] [max] (kill) : deal (lethal) damage | 
-|[[ChRemove$remove]] |string |none |remove [victim] [vnum$all] (inv$get$room) : extract object or send to target inventory(inv), CH inventory(get), or room | 
-|[[ChRemort$remort]] |string |none |remort [victim] : remort a player | 
-|[[ChQset$qset]] |string |none |qset [victim] [id] [value] [time limit] : set quest-state for player | 
-|[[ChQadvance$qadvance]] |string |none |qadvance [victim] [id] (increment) : increase quest-state | 
-|[[ChReward$reward]] |string |none |reward [victim] [exp$qp$gold] [ammount] : give exp or qp reward | 
-|[[ChPeace$peace]] |string |none |peace (victim) : stop combat and make mobs non-aggro | 
-|[[ChRestore$restore]] |string |none |restore [victim] : restore victim | 
-|[[ChSetact$setact]] |string |none |set or remove an act-flag |setact("safe")/setact("safe",false) | 
-|[[ChHit$hit]] |string |none |hit (victim) : do one attack |hit(ch.name) -- must be in battle with victim | 
-|[[ChTell$tell]] |string |none |send a tell |tell("somebody something") | 
-|[[ChDescribe$describe]] |string |none |do |something | 
-|[[ChAddaffect$addaffect]] |string |none |do |something | 
-|[[ChRemoveaffect$removeaffect]] |string |none |do |something | 
-| 
- 
-\\ 
  
main_chproperties.1403225178.txt.gz · Last modified: 2014/06/20 00:46 by astark