Smbx 1.4.5: Spevent
Posted: 20 Sep 2020, 22:47
I know that some special events have their "own name" by script but:
1) The spevent(1141) has name: Player.Itembox.Clear but it does nothing, this spevent should run: char(1).itemrsrv=0 and char(2).itemrsrv=0
2) When a player touches the npc 293: the player gets char(x).invtime=800(or 799), but the player gets it by the spevent(1115) the player has char(x).invtime=1000(or 999) (this must be the same number)
3)
I thought I found a way to call a player's immunity by running this script:
'for the first player
char(1).itemslot=-14
call spevent(5)
'for the second player
char(2).itemslot=-14
call spevent(6)
And this DOES run that immunity, but if the player is already in that state, I can't do it correctly, and this doesn't restart(like when I call spevent(1115) it DOES restart) and this would fail, not counting the effect of the mask that I cannot take it off.(undesirable side effect)
Not to mention that if the player has an itemslot different from zero it could fail.
Could you put a special event?:
[1001] PlayerImmunity(id=1) and [1002] PlayerImmunity(id=2) to execute that effect.
1) The spevent(1141) has name: Player.Itembox.Clear but it does nothing, this spevent should run: char(1).itemrsrv=0 and char(2).itemrsrv=0
2) When a player touches the npc 293: the player gets char(x).invtime=800(or 799), but the player gets it by the spevent(1115) the player has char(x).invtime=1000(or 999) (this must be the same number)
3)
I thought I found a way to call a player's immunity by running this script:
'for the first player
char(1).itemslot=-14
call spevent(5)
'for the second player
char(2).itemslot=-14
call spevent(6)
And this DOES run that immunity, but if the player is already in that state, I can't do it correctly, and this doesn't restart(like when I call spevent(1115) it DOES restart) and this would fail, not counting the effect of the mask that I cannot take it off.(undesirable side effect)
Not to mention that if the player has an itemslot different from zero it could fail.
Could you put a special event?:
[1001] PlayerImmunity(id=1) and [1002] PlayerImmunity(id=2) to execute that effect.