|Anonymous | Login | Signup for a new account||18-06-21 13:07 CEST|
|Main | My View | View Issues | Change Log | Roadmap|
|View Issue Details|
|ID||Project||Category||View Status||Date Submitted||Last Update|
|0002549||SphereServer||executable - generic||public||17-08-15 14:59||29-12-15 14:21|
|Target Version||Fixed in Version|
|Summary||0002549: SELL/BUY not working under IF clause in @NpcRestock|
|Description||On a vendor:|
This results in a purchasable dagger but an Undefined keyword 'SELL' for the katana.
I'm using the last nightly.
|Tags||No tags attached.|
|Nightly Version||Automated (specify build number)|
|Internal Build Number||2419|
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)
Fixed 0002535: NPCRestock is now accepting code like any other triggers.
It should work without BREAK, and even with it:
it doesn't work.
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.
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:
With suggested changes this would be required:
|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?|
|17-08-15 14:59||nolok||New Issue|
|17-08-15 19:02||darksun84||Note Added: 0002948|
|17-08-15 19:32||nolok||Note Added: 0002949|
|30-10-15 13:11||XuN||Summary||IF clause not working in @NpcRestock => SELL/BUY not working under IF clause in @NpcRestock|
|30-10-15 13:11||XuN||Status||new => confirmed|
|15-11-15 14:41||Ben||Note Added: 0002991|
|15-12-15 02:08||Ben||Note Added: 0002997|
|29-12-15 14:21||nolok||Note Added: 0003004|
|Copyright © 2000 - 2010 MantisBT Group|