diff --git a/python/IPO/say.py b/python/IPO/say.py index e84ae4e3a..9fb899ac1 100755 --- a/python/IPO/say.py +++ b/python/IPO/say.py @@ -150,7 +150,7 @@ elif text[0] == 'send': inv = activator.CheckInventory(sackName) map = 0 if inv != 0: - while inv != 0: + while inv: next = inv.Below text2=string.split(inv.Name) if text2[0]==sackName and text2[1]=='T:' and text2[3]=='F:' and text2[2] == text[1]: @@ -168,10 +168,10 @@ elif text[0] == 'send': elif text[0] == 'receive': map = Crossfire.ReadyMap(storage_map) if ( map != 0 ): - item = map.GetObjectAt(storage_x, storage_y) + item = map.ObjectAt(storage_x, storage_y) count = 0 - while item != 0: - previous = item.above + while item: + previous = item.Above text2 = string.split(item.Name) if ( len(text2) == 5 ) and ( text2[0] == sackName ) and ( text2[2] == activatorname ): activator.InsertObjectInside(item) @@ -185,4 +185,4 @@ elif text[0] == 'receive': whoami.Say('Sorry, our package delivery service is currently in strike. Please come back later.') else: whoami.Say('Do you need help?') -Crossfire.SetReturnValue(1) \ No newline at end of file +Crossfire.SetReturnValue(1)