Module commit
Module commit.
This commit is contained in:
20
_module/nss/pv_set_npc_lstn.nss
Normal file
20
_module/nss/pv_set_npc_lstn.nss
Normal file
@@ -0,0 +1,20 @@
|
||||
//::///////////////////////////////////////////////
|
||||
//:: Name: pv_set_npc_lstn
|
||||
//:://////////////////////////////////////////////
|
||||
/*
|
||||
Sets the NPCMerchant to listen for a certain
|
||||
pattern while listening to prices from the
|
||||
player.
|
||||
*/
|
||||
//:://////////////////////////////////////////////
|
||||
void main()
|
||||
{
|
||||
object oNPCMerchant = OBJECT_SELF;
|
||||
|
||||
SetListening (oNPCMerchant, TRUE);
|
||||
|
||||
// Set the merchant to listen only to numbers
|
||||
SetListenPattern (oNPCMerchant, "*n", 5000);
|
||||
|
||||
ActionPauseConversation();
|
||||
}
|
Reference in New Issue
Block a user