Jump to content

WEIDU - items basic coding problems


ptifab

Recommended Posts

Jarno, yes, by inheriting the info. I don't think it was saved, that's why it's less obvious. In GemRB we store the global id at runtime (not pointers), but that's just one way of doing it.

ptifab: updates are welcome, it's an open source community project like any other.

Link to comment

I'm actually playing with opcode #324 but i don't understand the whole point here. When it says in parameter 2 "creature type" = match entries x or y // not match entries x or y, what are those entries specifically ? I've searched on the web and iesdp but there's nothing explicit about it. If someone can enlighten me on that one because my brain is burning actually.

I'm looking about this one because i tried to add a damage effect on hit (each time a creature struck the character it suffers damage) but if the creature is out of range, the log displays a message "the spell has failed". I'd like to remove that message for those creature, if i'm explaining it correctly.

Link to comment

Does anyone knows how drow equipment disintegration is handled ? It's stated in the description that it will turn to dust if brought to surface daylight, but how exactly is it managed by the game ? I've seen that there's is a flag at 0x19 BIT15 that state EE:adamantine (15), but i've never seen it flagged for any drow item, (does it do anything ?)

So i'm scratching my head. Is it hardcoded ? and if so how does it know it's drow equipment ?

Link to comment
8 minutes ago, ptifab said:

Does anyone knows how drow equipment disintegration is handled ? It's stated in the description that it will turn to dust if brought to surface daylight, but how exactly is it managed by the game ? I've seen that there's is a flag at 0x19 BIT15 that state EE:adamantine (15), but i've never seen it flagged for any drow item, (does it do anything ?)

So i'm scratching my head. Is it hardcoded ? and if so how does it know it's drow equipment ?

Hard coded? Nope.

In vanilla BG2:SoA it's part of the area script(s) that you enter when you exit the underground. So you could put all your adamantine items into the bag of holding and save them from being dusted. Of course that required that you had a bag of holding which you couldn't have up to that point, so... later it was added by mods into the main game script(baldur.bcs), but that prodused lag or errors too. So it was kinda removed.

Link to comment
1 hour ago, Jarno Mikkola said:

Hard coded? Nope.

In vanilla BG2:SoA it's part of the area script(s) that you enter when you exit the underground. So you could put all your adamantine items into the bag of holding and save them from being dusted. Of course that required that you had a bag of holding which you couldn't have up to that point, so... later it was added by mods into the main game script(baldur.bcs), but that prodused lag or errors too. So it was kinda removed.

That i already know @Jarno Mikkola but my question was how exactly does the engine know how to chose the correct item ? What file, script, code is used ?

Edited by ptifab
Link to comment

Well, if you know this, then why ask ? ar2500.bcs:

 


IF
    Global("DROWITEMCHECKDONE","GLOBAL",0)
THEN
    RESPONSE #100
        MultiPlayerSync()
        SetInterrupt(FALSE)
        Wait(1)
        Continue()
END

IF
    Global("DROWITEMCHECKDONE","GLOBAL",0)
    HasItem("DWCHAN01",Player1)  // Drow Elven Chain +3
THEN
    RESPONSE #100
        TakeItemReplace("DWDUST","DWCHAN01",Player1)  // Adamantine Dust
        Continue()
END

IF
    Global("DROWITEMCHECKDONE","GLOBAL",0)
    HasItem("DWCHAN01",Player2)  // Drow Elven Chain +3
THEN
    RESPONSE #100
        TakeItemReplace("DWDUST","DWCHAN01",Player2)  // Adamantine Dust
        Continue()
END

IF
    Global("DROWITEMCHECKDONE","GLOBAL",0)
    HasItem("DWCHAN01",Player3)  // Drow Elven Chain +3
THEN
    RESPONSE #100
        TakeItemReplace("DWDUST","DWCHAN01",Player3)  // Adamantine Dust
        Continue()
END

IF
    Global("DROWITEMCHECKDONE","GLOBAL",0)
    HasItem("DWCHAN01",Player4)  // Drow Elven Chain +3
THEN
    RESPONSE #100
        TakeItemReplace("DWDUST","DWCHAN01",Player4)  // Adamantine Dust
        Continue()
END

IF
    Global("DROWITEMCHECKDONE","GLOBAL",0)
    HasItem("DWCHAN01",Player5)  // Drow Elven Chain +3
THEN
    RESPONSE #100
        TakeItemReplace("DWDUST","DWCHAN01",Player5)  // Adamantine Dust
        Continue()
END

IF
    Global("DROWITEMCHECKDONE","GLOBAL",0)
    HasItem("DWCHAN01",Player6)  // Drow Elven Chain +3
THEN
    RESPONSE #100
        TakeItemReplace("DWDUST","DWCHAN01",Player6)  // Adamantine Dust
        Continue()
END

IF
    Global("DROWITEMCHECKDONE","GLOBAL",0)
    HasItem("DWCHAN02",Player1)  // Drow Adamantine Chain +5
THEN
    RESPONSE #100
        TakeItemReplace("DWDUST","DWCHAN02",Player1)  // Adamantine Dust
        Continue()
END

IF
    Global("DROWITEMCHECKDONE","GLOBAL",0)
    HasItem("DWCHAN02",Player2)  // Drow Adamantine Chain +5
THEN
    RESPONSE #100
        TakeItemReplace("DWDUST","DWCHAN02",Player2)  // Adamantine Dust
        Continue()
END

IF
    Global("DROWITEMCHECKDONE","GLOBAL",0)
    HasItem("DWCHAN02",Player3)  // Drow Adamantine Chain +5
THEN
    RESPONSE #100
        TakeItemReplace("DWDUST","DWCHAN02",Player3)  // Adamantine Dust
        Continue()
END

IF
    Global("DROWITEMCHECKDONE","GLOBAL",0)
    HasItem("DWCHAN02",Player4)  // Drow Adamantine Chain +5
THEN
    RESPONSE #100
        TakeItemReplace("DWDUST","DWCHAN02",Player4)  // Adamantine Dust
        Continue()
END

IF
    Global("DROWITEMCHECKDONE","GLOBAL",0)
    HasItem("DWCHAN02",Player5)  // Drow Adamantine Chain +5
THEN
    RESPONSE #100
        TakeItemReplace("DWDUST","DWCHAN02",Player5)  // Adamantine Dust
        Continue()
END

IF
    Global("DROWITEMCHECKDONE","GLOBAL",0)
    HasItem("DWCHAN02",Player6)  // Drow Adamantine Chain +5
THEN
    RESPONSE #100
        TakeItemReplace("DWDUST","DWCHAN02",Player6)  // Adamantine Dust
        Continue()
END

IF
    Global("DROWITEMCHECKDONE","GLOBAL",0)
    HasItem("DWSW1H01",Player1)  // Drow Scimitar +3
THEN
    RESPONSE #100
        TakeItemReplace("DWDUST","DWSW1H01",Player1)  // Adamantine Dust
        Continue()
END

IF
    Global("DROWITEMCHECKDONE","GLOBAL",0)
    HasItem("DWSW1H01",Player2)  // Drow Scimitar +3
THEN
    RESPONSE #100
        TakeItemReplace("DWDUST","DWSW1H01",Player2)  // Adamantine Dust
        Continue()
END

IF
    Global("DROWITEMCHECKDONE","GLOBAL",0)
    HasItem("DWSW1H01",Player3)  // Drow Scimitar +3
THEN
    RESPONSE #100
        TakeItemReplace("DWDUST","DWSW1H01",Player3)  // Adamantine Dust
        Continue()
END

IF
    Global("DROWITEMCHECKDONE","GLOBAL",0)
    HasItem("DWSW1H01",Player4)  // Drow Scimitar +3
THEN
    RESPONSE #100
        TakeItemReplace("DWDUST","DWSW1H01",Player4)  // Adamantine Dust
        Continue()
END

IF
    Global("DROWITEMCHECKDONE","GLOBAL",0)
    HasItem("DWSW1H01",Player5)  // Drow Scimitar +3
THEN
    RESPONSE #100
        TakeItemReplace("DWDUST","DWSW1H01",Player5)  // Adamantine Dust
        Continue()
END

IF
    Global("DROWITEMCHECKDONE","GLOBAL",0)
    HasItem("DWSW1H01",Player6)  // Drow Scimitar +3
THEN
    RESPONSE #100
        TakeItemReplace("DWDUST","DWSW1H01",Player6)  // Adamantine Dust
        Continue()
END

IF
    Global("DROWITEMCHECKDONE","GLOBAL",0)
    HasItem("DWSW1H02",Player1)  // Drow Long Sword +3
THEN
    RESPONSE #100
        TakeItemReplace("DWDUST","DWSW1H02",Player1)  // Adamantine Dust
        Continue()
END

IF
    Global("DROWITEMCHECKDONE","GLOBAL",0)
    HasItem("DWSW1H02",Player2)  // Drow Long Sword +3
THEN
    RESPONSE #100
        TakeItemReplace("DWDUST","DWSW1H02",Player2)  // Adamantine Dust
        Continue()
END

IF
    Global("DROWITEMCHECKDONE","GLOBAL",0)
    HasItem("DWSW1H02",Player3)  // Drow Long Sword +3
THEN
    RESPONSE #100
        TakeItemReplace("DWDUST","DWSW1H02",Player3)  // Adamantine Dust
        Continue()
END

IF
    Global("DROWITEMCHECKDONE","GLOBAL",0)
    HasItem("DWSW1H02",Player4)  // Drow Long Sword +3
THEN
    RESPONSE #100
        TakeItemReplace("DWDUST","DWSW1H02",Player4)  // Adamantine Dust
        Continue()
END

IF
    Global("DROWITEMCHECKDONE","GLOBAL",0)
    HasItem("DWSW1H02",Player5)  // Drow Long Sword +3
THEN
    RESPONSE #100
        TakeItemReplace("DWDUST","DWSW1H02",Player5)  // Adamantine Dust
        Continue()
END

IF
    Global("DROWITEMCHECKDONE","GLOBAL",0)
    HasItem("DWSW1H02",Player6)  // Drow Long Sword +3
THEN
    RESPONSE #100
        TakeItemReplace("DWDUST","DWSW1H02",Player6)  // Adamantine Dust
        Continue()
END

IF
    Global("DROWITEMCHECKDONE","GLOBAL",0)
    HasItem("DWBLUN01",Player1)  // Drow Flail +3
THEN
    RESPONSE #100
        TakeItemReplace("DWDUST","DWBLUN01",Player1)  // Adamantine Dust
        Continue()
END

IF
    Global("DROWITEMCHECKDONE","GLOBAL",0)
    HasItem("DWBLUN01",Player2)  // Drow Flail +3
THEN
    RESPONSE #100
        TakeItemReplace("DWDUST","DWBLUN01",Player2)  // Adamantine Dust
        Continue()
END

IF
    Global("DROWITEMCHECKDONE","GLOBAL",0)
    HasItem("DWBLUN01",Player3)  // Drow Flail +3
THEN
    RESPONSE #100
        TakeItemReplace("DWDUST","DWBLUN01",Player3)  // Adamantine Dust
        Continue()
END

IF
    Global("DROWITEMCHECKDONE","GLOBAL",0)
    HasItem("DWBLUN01",Player4)  // Drow Flail +3
THEN
    RESPONSE #100
        TakeItemReplace("DWDUST","DWBLUN01",Player4)  // Adamantine Dust
        Continue()
END

IF
    Global("DROWITEMCHECKDONE","GLOBAL",0)
    HasItem("DWBLUN01",Player5)  // Drow Flail +3
THEN
    RESPONSE #100
        TakeItemReplace("DWDUST","DWBLUN01",Player5)  // Adamantine Dust
        Continue()
END

IF
    Global("DROWITEMCHECKDONE","GLOBAL",0)
    HasItem("DWBLUN01",Player6)  // Drow Flail +3
THEN
    RESPONSE #100
        TakeItemReplace("DWDUST","DWBLUN01",Player6)  // Adamantine Dust
        Continue()
END

IF
    Global("DROWITEMCHECKDONE","GLOBAL",0)
    HasItem("DWHALB01",Player1)  // Drow Halberd +3
THEN
    RESPONSE #100
        TakeItemReplace("DWDUST","DWHALB01",Player1)  // Adamantine Dust
        Continue()
END

IF
    Global("DROWITEMCHECKDONE","GLOBAL",0)
    HasItem("DWHALB01",Player2)  // Drow Halberd +3
THEN
    RESPONSE #100
        TakeItemReplace("DWDUST","DWHALB01",Player2)  // Adamantine Dust
        Continue()
END

IF
    Global("DROWITEMCHECKDONE","GLOBAL",0)
    HasItem("DWHALB01",Player3)  // Drow Halberd +3
THEN
    RESPONSE #100
        TakeItemReplace("DWDUST","DWHALB01",Player3)  // Adamantine Dust
        Continue()
END

IF
    Global("DROWITEMCHECKDONE","GLOBAL",0)
    HasItem("DWHALB01",Player4)  // Drow Halberd +3
THEN
    RESPONSE #100
        TakeItemReplace("DWDUST","DWHALB01",Player4)  // Adamantine Dust
        Continue()
END

IF
    Global("DROWITEMCHECKDONE","GLOBAL",0)
    HasItem("DWHALB01",Player5)  // Drow Halberd +3
THEN
    RESPONSE #100
        TakeItemReplace("DWDUST","DWHALB01",Player5)  // Adamantine Dust
        Continue()
END

IF
    Global("DROWITEMCHECKDONE","GLOBAL",0)
    HasItem("DWHALB01",Player6)  // Drow Halberd +3
THEN
    RESPONSE #100
        TakeItemReplace("DWDUST","DWHALB01",Player6)  // Adamantine Dust
        Continue()
END

IF
    Global("DROWITEMCHECKDONE","GLOBAL",0)
    HasItem("DWSPER01",Player1)  // Drow Lance +3
THEN
    RESPONSE #100
        TakeItemReplace("DWDUST","DWSPER01",Player1)  // Adamantine Dust
        Continue()
END

IF
    Global("DROWITEMCHECKDONE","GLOBAL",0)
    HasItem("DWSPER01",Player2)  // Drow Lance +3
THEN
    RESPONSE #100
        TakeItemReplace("DWDUST","DWSPER01",Player2)  // Adamantine Dust
        Continue()
END

IF
    Global("DROWITEMCHECKDONE","GLOBAL",0)
    HasItem("DWSPER01",Player3)  // Drow Lance +3
THEN
    RESPONSE #100
        TakeItemReplace("DWDUST","DWSPER01",Player3)  // Adamantine Dust
        Continue()
END

IF
    Global("DROWITEMCHECKDONE","GLOBAL",0)
    HasItem("DWSPER01",Player4)  // Drow Lance +3
THEN
    RESPONSE #100
        TakeItemReplace("DWDUST","DWSPER01",Player4)  // Adamantine Dust
        Continue()
END

IF
    Global("DROWITEMCHECKDONE","GLOBAL",0)
    HasItem("DWSPER01",Player5)  // Drow Lance +3
THEN
    RESPONSE #100
        TakeItemReplace("DWDUST","DWSPER01",Player5)  // Adamantine Dust
        Continue()
END

IF
    Global("DROWITEMCHECKDONE","GLOBAL",0)
    HasItem("DWSPER01",Player6)  // Drow Lance +3
THEN
    RESPONSE #100
        TakeItemReplace("DWDUST","DWSPER01",Player6)  // Adamantine Dust
        Continue()
END

IF
    Global("DROWITEMCHECKDONE","GLOBAL",0)
    HasItem("DWXBOW01",Player1)  // Drow Crossbow of Speed
THEN
    RESPONSE #100
        TakeItemReplace("DWDUST","DWXBOW01",Player1)  // Adamantine Dust
        Continue()
END

IF
    Global("DROWITEMCHECKDONE","GLOBAL",0)
    HasItem("DWXBOW01",Player2)  // Drow Crossbow of Speed
THEN
    RESPONSE #100
        TakeItemReplace("DWDUST","DWXBOW01",Player2)  // Adamantine Dust
        Continue()
END

IF
    Global("DROWITEMCHECKDONE","GLOBAL",0)
    HasItem("DWXBOW01",Player3)  // Drow Crossbow of Speed
THEN
    RESPONSE #100
        TakeItemReplace("DWDUST","DWXBOW01",Player3)  // Adamantine Dust
        Continue()
END

IF
    Global("DROWITEMCHECKDONE","GLOBAL",0)
    HasItem("DWXBOW01",Player4)  // Drow Crossbow of Speed
THEN
    RESPONSE #100
        TakeItemReplace("DWDUST","DWXBOW01",Player4)  // Adamantine Dust
        Continue()
END

IF
    Global("DROWITEMCHECKDONE","GLOBAL",0)
    HasItem("DWXBOW01",Player5)  // Drow Crossbow of Speed
THEN
    RESPONSE #100
        TakeItemReplace("DWDUST","DWXBOW01",Player5)  // Adamantine Dust
        Continue()
END

IF
    Global("DROWITEMCHECKDONE","GLOBAL",0)
    HasItem("DWXBOW01",Player6)  // Drow Crossbow of Speed
THEN
    RESPONSE #100
        TakeItemReplace("DWDUST","DWXBOW01",Player6)  // Adamantine Dust
        Continue()
END

IF
    Global("DROWITEMCHECKDONE","GLOBAL",0)
    HasItem("DWSHLD01",Player1)  // Drow Shield +3
THEN
    RESPONSE #100
        TakeItemReplace("DWDUST","DWSHLD01",Player1)  // Adamantine Dust
        Continue()
END

IF
    Global("DROWITEMCHECKDONE","GLOBAL",0)
    HasItem("DWSHLD01",Player2)  // Drow Shield +3
THEN
    RESPONSE #100
        TakeItemReplace("DWDUST","DWSHLD01",Player2)  // Adamantine Dust
        Continue()
END

IF
    Global("DROWITEMCHECKDONE","GLOBAL",0)
    HasItem("DWSHLD01",Player3)  // Drow Shield +3
THEN
    RESPONSE #100
        TakeItemReplace("DWDUST","DWSHLD01",Player3)  // Adamantine Dust
        Continue()
END

IF
    Global("DROWITEMCHECKDONE","GLOBAL",0)
    HasItem("DWSHLD01",Player4)  // Drow Shield +3
THEN
    RESPONSE #100
        TakeItemReplace("DWDUST","DWSHLD01",Player4)  // Adamantine Dust
        Continue()
END

IF
    Global("DROWITEMCHECKDONE","GLOBAL",0)
    HasItem("DWSHLD01",Player5)  // Drow Shield +3
THEN
    RESPONSE #100
        TakeItemReplace("DWDUST","DWSHLD01",Player5)  // Adamantine Dust
        Continue()
END

IF
    Global("DROWITEMCHECKDONE","GLOBAL",0)
    HasItem("DWSHLD01",Player6)  // Drow Shield +3
THEN
    RESPONSE #100
        TakeItemReplace("DWDUST","DWSHLD01",Player6)  // Adamantine Dust
        Continue()
END

IF
    Global("DROWITEMCHECKDONE","GLOBAL",0)
    HasItem("DWCLCK01",Player1)  // Drow Piwafwi Cloak
THEN
    RESPONSE #100
        TakeItemReplace("DWDUST","DWCLCK01",Player1)  // Adamantine Dust
        Continue()
END

IF
    Global("DROWITEMCHECKDONE","GLOBAL",0)
    HasItem("DWCLCK01",Player2)  // Drow Piwafwi Cloak
THEN
    RESPONSE #100
        TakeItemReplace("DWDUST","DWCLCK01",Player2)  // Adamantine Dust
        Continue()
END

IF
    Global("DROWITEMCHECKDONE","GLOBAL",0)
    HasItem("DWCLCK01",Player3)  // Drow Piwafwi Cloak
THEN
    RESPONSE #100
        TakeItemReplace("DWDUST","DWCLCK01",Player3)  // Adamantine Dust
        Continue()
END

IF
    Global("DROWITEMCHECKDONE","GLOBAL",0)
    HasItem("DWCLCK01",Player4)  // Drow Piwafwi Cloak
THEN
    RESPONSE #100
        TakeItemReplace("DWDUST","DWCLCK01",Player4)  // Adamantine Dust
        Continue()
END

IF
    Global("DROWITEMCHECKDONE","GLOBAL",0)
    HasItem("DWCLCK01",Player5)  // Drow Piwafwi Cloak
THEN
    RESPONSE #100
        TakeItemReplace("DWDUST","DWCLCK01",Player5)  // Adamantine Dust
        Continue()
END

IF
    Global("DROWITEMCHECKDONE","GLOBAL",0)
    HasItem("DWCLCK01",Player6)  // Drow Piwafwi Cloak
THEN
    RESPONSE #100
        TakeItemReplace("DWDUST","DWCLCK01",Player6)  // Adamantine Dust
        Continue()
END

IF
    Global("DROWITEMCHECKDONE","GLOBAL",0)
    HasItem("DWBOLT01",Player1)  // Drow Bolt of Sleep
THEN
    RESPONSE #100
        TakeItemReplace("DWDUST","DWBOLT01",Player1)  // Adamantine Dust
        Continue()
END

IF
    Global("DROWITEMCHECKDONE","GLOBAL",0)
    HasItem("DWBOLT01",Player2)  // Drow Bolt of Sleep
THEN
    RESPONSE #100
        TakeItemReplace("DWDUST","DWBOLT01",Player2)  // Adamantine Dust
        Continue()
END

IF
    Global("DROWITEMCHECKDONE","GLOBAL",0)
    HasItem("DWBOLT01",Player3)  // Drow Bolt of Sleep
THEN
    RESPONSE #100
        TakeItemReplace("DWDUST","DWBOLT01",Player3)  // Adamantine Dust
        Continue()
END

IF
    Global("DROWITEMCHECKDONE","GLOBAL",0)
    HasItem("DWBOLT01",Player4)  // Drow Bolt of Sleep
THEN
    RESPONSE #100
        TakeItemReplace("DWDUST","DWBOLT01",Player4)  // Adamantine Dust
        Continue()
END

IF
    Global("DROWITEMCHECKDONE","GLOBAL",0)
    HasItem("DWBOLT01",Player5)  // Drow Bolt of Sleep
THEN
    RESPONSE #100
        TakeItemReplace("DWDUST","DWBOLT01",Player5)  // Adamantine Dust
        Continue()
END

IF
    Global("DROWITEMCHECKDONE","GLOBAL",0)
    HasItem("DWBOLT01",Player6)  // Drow Bolt of Sleep
THEN
    RESPONSE #100
        TakeItemReplace("DWDUST","DWBOLT01",Player6)  // Adamantine Dust
        Continue()
END

IF
    Global("DROWITEMCHECKDONE","GLOBAL",0)
    HasItem("DWBOLT02",Player1)  // Drow Bolt of Stunning
THEN
    RESPONSE #100
        TakeItemReplace("DWDUST","DWBOLT02",Player1)  // Adamantine Dust
        Continue()
END

IF
    Global("DROWITEMCHECKDONE","GLOBAL",0)
    HasItem("DWBOLT02",Player2)  // Drow Bolt of Stunning
THEN
    RESPONSE #100
        TakeItemReplace("DWDUST","DWBOLT02",Player2)  // Adamantine Dust
        Continue()
END

IF
    Global("DROWITEMCHECKDONE","GLOBAL",0)
    HasItem("DWBOLT02",Player3)  // Drow Bolt of Stunning
THEN
    RESPONSE #100
        TakeItemReplace("DWDUST","DWBOLT02",Player3)  // Adamantine Dust
        Continue()
END

IF
    Global("DROWITEMCHECKDONE","GLOBAL",0)
    HasItem("DWBOLT02",Player4)  // Drow Bolt of Stunning
THEN
    RESPONSE #100
        TakeItemReplace("DWDUST","DWBOLT02",Player4)  // Adamantine Dust
        Continue()
END

IF
    Global("DROWITEMCHECKDONE","GLOBAL",0)
    HasItem("DWBOLT02",Player5)  // Drow Bolt of Stunning
THEN
    RESPONSE #100
        TakeItemReplace("DWDUST","DWBOLT02",Player5)  // Adamantine Dust
        Continue()
END

IF
    Global("DROWITEMCHECKDONE","GLOBAL",0)
    HasItem("DWBOLT02",Player6)  // Drow Bolt of Stunning
THEN
    RESPONSE #100
        TakeItemReplace("DWDUST","DWBOLT02",Player6)  // Adamantine Dust
        Continue()
END

IF
    Global("DROWITEMCHECKDONE","GLOBAL",0)
    HasItem("DWBOLT03",Player1)  // Drow Bolt +1
THEN
    RESPONSE #100
        TakeItemReplace("DWDUST","DWBOLT03",Player1)  // Adamantine Dust
        Continue()
END

IF
    Global("DROWITEMCHECKDONE","GLOBAL",0)
    HasItem("DWBOLT03",Player2)  // Drow Bolt +1
THEN
    RESPONSE #100
        TakeItemReplace("DWDUST","DWBOLT03",Player2)  // Adamantine Dust
        Continue()
END

IF
    Global("DROWITEMCHECKDONE","GLOBAL",0)
    HasItem("DWBOLT03",Player3)  // Drow Bolt +1
THEN
    RESPONSE #100
        TakeItemReplace("DWDUST","DWBOLT03",Player3)  // Adamantine Dust
        Continue()
END

IF
    Global("DROWITEMCHECKDONE","GLOBAL",0)
    HasItem("DWBOLT03",Player4)  // Drow Bolt +1
THEN
    RESPONSE #100
        TakeItemReplace("DWDUST","DWBOLT03",Player4)  // Adamantine Dust
        Continue()
END

IF
    Global("DROWITEMCHECKDONE","GLOBAL",0)
    HasItem("DWBOLT03",Player5)  // Drow Bolt +1
THEN
    RESPONSE #100
        TakeItemReplace("DWDUST","DWBOLT03",Player5)  // Adamantine Dust
        Continue()
END

IF
    Global("DROWITEMCHECKDONE","GLOBAL",0)
    HasItem("DWBOLT03",Player6)  // Drow Bolt +1
THEN
    RESPONSE #100
        TakeItemReplace("DWDUST","DWBOLT03",Player6)  // Adamantine Dust
        Continue()
END

IF
    Global("DROWITEMCHECKDONE","GLOBAL",0)
    HasItem("DWPLAT01",Player1)  // Drow Full Plate +5
THEN
    RESPONSE #100
        TakeItemReplace("DWDUST","DWPLAT01",Player1)  // Adamantine Dust
        Continue()
END

IF
    Global("DROWITEMCHECKDONE","GLOBAL",0)
    HasItem("DWPLAT01",Player2)  // Drow Full Plate +5
THEN
    RESPONSE #100
        TakeItemReplace("DWDUST","DWPLAT01",Player2)  // Adamantine Dust
        Continue()
END

IF
    Global("DROWITEMCHECKDONE","GLOBAL",0)
    HasItem("DWPLAT01",Player3)  // Drow Full Plate +5
THEN
    RESPONSE #100
        TakeItemReplace("DWDUST","DWPLAT01",Player3)  // Adamantine Dust
        Continue()
END

IF
    Global("DROWITEMCHECKDONE","GLOBAL",0)
    HasItem("DWPLAT01",Player4)  // Drow Full Plate +5
THEN
    RESPONSE #100
        TakeItemReplace("DWDUST","DWPLAT01",Player4)  // Adamantine Dust
        Continue()
END

IF
    Global("DROWITEMCHECKDONE","GLOBAL",0)
    HasItem("DWPLAT01",Player5)  // Drow Full Plate +5
THEN
    RESPONSE #100
        TakeItemReplace("DWDUST","DWPLAT01",Player5)  // Adamantine Dust
        Continue()
END

IF
    Global("DROWITEMCHECKDONE","GLOBAL",0)
    HasItem("DWPLAT01",Player6)  // Drow Full Plate +5
THEN
    RESPONSE #100
        TakeItemReplace("DWDUST","DWPLAT01",Player6)  // Adamantine Dust
        Continue()
END

IF
    Global("DROWITEMCHECKDONE","GLOBAL",0)
    HasItem("MISC9W",Player1)  // Drow Piwafwi Cloak
THEN
    RESPONSE #100
        TakeItemReplace("DWDUST","MISC9W",Player1)  // Adamantine Dust
        Continue()
END

IF
    Global("DROWITEMCHECKDONE","GLOBAL",0)
    HasItem("MISC9W",Player2)  // Drow Piwafwi Cloak
THEN
    RESPONSE #100
        TakeItemReplace("DWDUST","MISC9W",Player2)  // Adamantine Dust
        Continue()
END

IF
    Global("DROWITEMCHECKDONE","GLOBAL",0)
    HasItem("MISC9W",Player3)  // Drow Piwafwi Cloak
THEN
    RESPONSE #100
        TakeItemReplace("DWDUST","MISC9W",Player3)  // Adamantine Dust
        Continue()
END

IF
    Global("DROWITEMCHECKDONE","GLOBAL",0)
    HasItem("MISC9W",Player4)  // Drow Piwafwi Cloak
THEN
    RESPONSE #100
        TakeItemReplace("DWDUST","MISC9W",Player4)  // Adamantine Dust
        Continue()
END

IF
    Global("DROWITEMCHECKDONE","GLOBAL",0)
    HasItem("MISC9W",Player5)  // Drow Piwafwi Cloak
THEN
    RESPONSE #100
        TakeItemReplace("DWDUST","MISC9W",Player5)  // Adamantine Dust
        Continue()
END

IF
    Global("DROWITEMCHECKDONE","GLOBAL",0)
    HasItem("MISC9W",Player6)  // Drow Piwafwi Cloak
THEN
    RESPONSE #100
        TakeItemReplace("DWDUST","MISC9W",Player6)  // Adamantine Dust
        Continue()
END

IF
    Global("DROWITEMCHECKDONE","GLOBAL",0)
THEN
    RESPONSE #100
        SetInterrupt(TRUE)
END

IF
    Global("DROWITEMCHECKDONE","GLOBAL",0)
THEN
    RESPONSE #100
        SetGlobal("DROWITEMCHECKDONE","GLOBAL",1)
END

 

Edited by Jarno Mikkola
Link to comment

Join the conversation

You are posting as a guest. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...