[Dif] Removing one item in the item.remove()

04/21/2013 14:51 sherer223#1
Hi!
This dif will fix removing all items from the stack if we use item.remove().
Here you are:

HTML Code:
This difference file is created by The Interactive Disassembler

game
001474A0: A1 89
001474A1: D8 34
001474A2: 49 24
001474A3: 4C E8
001474A4: 08 78
001474A5: C7 85
001474A6: 44 FA
001474A7: 24 FF
001474A8: 08 89
001474A9: 00 34
001474AA: 00 24
001474AB: 00 83
001474AC: 00 E8
001474AD: 89 01
001474AE: 74 89
001474AF: 24 44
001474B0: 04 24
001474B1: 89 04
001474B2: 04 E8
001474B3: 24 C9
001474B4: E8 B3
001474B5: 37 FA
001474B6: EB FF
001474B7: FA 90
001474B8: FF 90
001474B9: 89 90
001474BA: 1C 90
001474BB: 24 90
001474BC: E8 90
001474BD: 0F 90
001474BE: 77 90
001474BF: 01 90
001474C0: 00 90
04/21/2013 15:23 He3o Sippel#2
Very nice thx.

But is there any way to remove items 200 times if need ?

likte item.remove(200) or so ?

So i dont need to write 200x item.remove()
04/21/2013 15:25 iSouli~#3
Quote:
Originally Posted by Sippe! View Post
Very nice thx.

But is there any way to remove items 200 times if need ?

likte item.remove(200) or so ?

So i dont need to write 200x item.remove()
PHP Code:
pc.remove_item(item.get_vnum(), 200oder
pc
.remove_item(item.get_vnum(), pc.count_item(item.get_vnum())) oder
for 1pc.count_item(item.get_vnum()) do
    
item.remove(item.get_vnum())
end 
04/21/2013 15:38 He3o Sippel#4
Quote:
Originally Posted by iSouli~ View Post
PHP Code:
pc.remove_item(item.get_vnum(), 200oder
pc
.remove_item(item.get_vnum(), pc.count_item(item.get_vnum())) oder
for 1pc.count_item(item.get_vnum()) do
    
item.remove(item.get_vnum())
end 
Achja die Schleifen gibt es ja noch.

Danke gerade i-wie total verpennt :D