Difference between revisions of "LUA:SummonItem"

(Created page with "Gives an item to a target, the last parameter (1 for true 0 for false) sets whether to show a message on receiving the item. ==== Syntax ==== SummonItem(target, item_id, bool) ...")
 
 
Line 1: Line 1:
Gives an item to a target, the last parameter (1 for true 0 for false) sets whether to show a message on receiving the item.
+
Gives an item to a target, the last parameter (1 for true 0 for false) sets whether to show a message on receiving the item. Also returns a true or false if the item was summoned.
  
 
==== Syntax ====
 
==== Syntax ====

Latest revision as of 17:12, 7 May 2013

Gives an item to a target, the last parameter (1 for true 0 for false) sets whether to show a message on receiving the item. Also returns a true or false if the item was summoned.

Syntax

SummonItem(target, item_id, bool)

Usage

function TalkedYasha(Quest, QuestGiver, Player)
    SummonItem(Player, 46842, 1)
end

When the function TalkedYasha is called SummonItem will give the player the item makeshift barricade and show the message "you receive [makeshift barricade]".


Back to LUA General Functions Index