Skip to content
Discussion options

You must be logged in to vote

I'm not confident that this is the proper approach, but if there are only two pairs of messages, sending the messages asynchronously from the NPC interaction, like below, might make them appear in the expected order.

player:addItem({ id = data.reward, exdata = { augmentKind = xi.augment.kind.HAS_AUGMENTS, augments = augments } })
player:addItem(family.hundred, num100)

player:printToPlayer("Here is your newly augmented item:", 0, "Augment Service")
player:messageSpecial(ID.text.ITEM_OBTAINED, data.reward)

player:queue(0, function(playerArg)
	playerArg:printToPlayer("Here is your remaining currency:", 0, "Augment Service")
	playerArg:messageSpecial(ID.text.ITEMS_OBTAINED, family.hundred, …

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@vitus0123456
Comment options

@lefneer311
Comment options

Answer selected by vitus0123456
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants