No categories assigned

LUA:SummonItem

Revision as of 16:03, 6 May 2013 by Thefoof (talk | contribs) (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) ...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

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)

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