// When the user clicks on an NPC to start talking, have his entire party try to steal from it.
UT_DebugFloatyText(oOwner, "Talking to someone!"); // Controlled character
if (IsPartyMember(oOwner)) {
object[] party = GetPartyList(GetHero());
UT_DebugFloatyText(OBJECT_SELF, "I am OBJECT_SELF!"); // NPC character
int i;
for (i = 0; i < GetArraySize(party); i++) {
// Try stealing!
UT_DebugFloatyText(party[i], "Trying to steal!");
// This is the part that's not working.
SendEventOnCastAt(OBJECT_SELF, party[i], ABILITY_SKILL_STEALING_1);
SendEventOnCastAt(OBJECT_SELF, party[i], SKILL_STEALING);
}
}
Here's a better-formatted version.
Modifié par FunkyMo, 20 novembre 2009 - 03:33 .





Retour en haut






