;"Cyber the Wraith" NPC script

If GetUserSkill(#USERID, 11) > 0
   SendMessageToUser(#USERID,"Cyber the Wraith says, 'I can only teach you the Restore skill once.'",#MSG_SAY) 
Else
   SendMessageToUser(#USERID,"Cyber the Wraith says, 'I said I would give you something, but I never said it was free!'",#MSG_SAY)
   If GetUserSilver(#USERID) < 1500
      SendMessageToUser(#USERID,"Cyber the Wraith says, 'If you bring me 1500 silver pieces, then I will give you something useful.'",#MSG_SAY)
   Else
      SendMessageToUser(#USERID,"Cyber the Wraith says, 'I will take these 1500 silver pieces, and teach you this skill...'",#MSG_SAY)
      SetUserSilver(#USERID, GetUserSilver(#USERID) - 1500)
      SendMessageToUser(#USERID,"Your purse now contains "+GetUserSilver(#USERID)+" silver pieces.",#MSG_TELL)
      SendMessageToUser(#USERID,"You now know the Restore skill. You can use it to heal yourself.",#MSG_EMOTE)
      SetUserSkill(#USERID, 11, 1)
   EndIf
EndIf

Continue = 1