Notes |
|
|
You have to use the BREAK keyword
Added: "BREAK" function under @create and @npcrestock to return to normal script interpratation after an ITEM= line since any lines under it was designed to modify the item. (any BUY or SELL line will also break ITEM loop) |
|
|
(0002949)
|
nolok
|
17-08-15 19:32
|
|
24-07-2015, XuN
Fixed 0002535: NPCRestock is now accepting code like any other triggers.
It should work without BREAK, and even with it:
ON=@NpcRestock
SELL=i_dagger,2
BREAK
IF 1
SELL=i_katana,2
ENDIF
it doesn't work. |
|
|
(0002991)
|
Ben
|
15-11-15 14:41
|
|
I know where this issue is. @create and @npcrestock were designed differently then the others. BUY and SELL are only present in these triggers, and when normal trigger scripting is added, it no longer recognize these keywords as it thinks it's a normal trigger.
I'll see if I can find a way to change that. |
|
|
(0002997)
|
Ben
|
15-12-15 02:08
|
|
Been looking at this some more, and it's not an easy fix with the current engine.
There is one solution to this... Make @NPCRestock and @Create act like regular triggers and be forced to use NEW.attributehere to affect the previous item.
Example how it is now:
BUY=I_katana
COLOR=color_red
With suggested changes this would be required:
BUY=I_katana
NEW.COLOR=color_red |
|
|
(0003004)
|
nolok
|
29-12-15 14:21
|
|
Would be it possible, in order to achieve both backwards compatibility and a good speed, to enable this suggested behaviour calling FULLINTERP at the beginning of the trigger? |
|