7 quantity =
int(args[1])
10 if itemname ==
"money":
14 id = character.CreateObject(
'platinum coin')
17 id = character.CreateObject(
'gold coin')
20 id = character.CreateObject(
'silver coin')
22 character.Write(
"{} gives you {}".format(speaker.Name, Crossfire.CostStringFromValue(quantity)))
27 lookin = speaker.CheckInventory(
"NPC_Gift_Box")
29 inv = lookin.CheckInventory(itemname)
32 inv = speaker.CheckInventory(itemname)
34 inv = speaker.CheckInventory(itemname)
42 quantity = nextob.Quantity
47 newob = nextob.Clone(0)
48 newob.Quantity = quantity
49 character.Write(
"{} gives you {} {}".format(speaker.Name, quantity, newob.Name))
50 newob.InsertInto(character)
58 newob = inv.Split(quantity)
60 character.Write(
"{} gives you {} {}".format(speaker.Name, quantity, newob.Name))
61 newob.InsertInto(character)
64 Crossfire.Log(Crossfire.LogError,
"Dialog script tried to give a non-existant item to a player")