StendhalScripting/LuaAPI: Difference between revisions

Jump to navigation Jump to search
Content deleted Content added
imported>AntumDeluge
entities: LuaSpeakerNPC & LuaSilentNPC
imported>AntumDeluge
entities: return type of entities:getNPC changed to LuaSpeakerNPC
Line 183: Line 183:
: Retrieves an existing SpeakerNPC.
: Retrieves an existing SpeakerNPC.
: '''''name:''''' (<code>String</code>) Name of NPC.
: '''''name:''''' (<code>String</code>) Name of NPC.
: ''returns:'' {{StendhalFile|master|src/games/stendhal/server/entity/npc/SpeakerNPC.java|SpeakerNPC}} instance or <code>null</code> ('''FIXME:''' this should return <code>LuaSpeakerNPC</code>).
: ''returns:'' [[StendhalScripting/LuaAPI#LuaSpeakerNPC|SpeakerNPC]] instance or <code>null</code>.


; ''<span style="color:green">entities:getItem</span>(name)''
; ''<span style="color:green">entities:getItem</span>(name)''