You are viewing an old version of this page. Return to the latest version.
Version of 16:03, 6 May 2013 by I need to Update My Profile
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]".