mod_addedflavour_A704_Functions.qsrc 2.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. # mod_addedflavour_A704_Functions
  2. if $ARGS[0] = 'config':
  3. npctemp = 704
  4. $npc_dna['A<<npctemp>>'] = '0702835250 3264448398 6371524502 6365038709 4403552149 5175885234 9713813767'
  5. $npc_firstname['A<<npctemp>>'] = 'Valeri'
  6. $npc_nickname['A<<npctemp>>'] = 'Val'
  7. $npc_lastname['A<<npctemp>>'] = 'Kuznetsov'
  8. $npc_usedname['A<<npctemp>>'] = 'Valeri'
  9. $npc_fontcolor['A<<npctemp>>'] = 'Olive'
  10. npc_dob['A<<npctemp>>'] = 19920907
  11. $npc_notes['A<<npctemp>>'] = 'TBD'
  12. npc_gender['A<<npctemp>>'] = 0
  13. npc_rel['A<<npctemp>>'] = 30
  14. gs 'npcstaticdefaults', 'defaults'
  15. hotcat_rating['A<<npctemp>>'] = 7
  16. $modVar_AF_NPCLastKnownLocation['A704'] = ''
  17. end
  18. if $ARGS[0] = 'A704-WorkEv-X1':
  19. if $loc = $charsche_character_CurActLoc[arrpos('charsche_charlist',704)] and $charsche_character_CurActDesc[arrpos('charsche_charlist',704)] = 'Working' and modVar_AF_EventLock['A704-WorkEv-SeenWorking'] ! hour:
  20. modVar_AF_EventLock['A704-WorkEv-SeenWorking'] = hour
  21. if rand(1,2) = 2:
  22. CLOSE ALL
  23. if sound = 0:
  24. PLAY 'mod/addedflavour/sound/VanHorn.mp3' , 20
  25. end
  26. *nl
  27. if (kanikuli = 0 and SchoolAtestat = 0) and hour < 14:
  28. '<b><font color="<<$npc_fontcolor[''A704'']>>">"Ha! Caught you skipping school! Your secret is safe with me though, ' + iif(rand(1,2) = 1,'<<$pcs_nickname>>','<<$pcs_firstname>>') + '."</font> - Valeri had just driven past you in his Delivery Van!</b>'
  29. npc_rel['A704'] += rand((6 - difficulty),5)
  30. else
  31. '<b><font color="<<$npc_fontcolor[''A704'']>>">"' + iif(hour < 12,'Morning','Afternoon') + ' ' + iif(rand(1,2) = 1,'<<$pcs_nickname>>','<<$pcs_firstname>>') + '!"</font> - Valeri had just driven past you in his Delivery Van!</b>'
  32. npc_rel['A704'] += rand((6 - difficulty),5)
  33. end
  34. else
  35. *nl
  36. '<b>' + iif(modVar_AF_EventLock['A704-WorkEv-Interact'] = daystart,'Valeri','<a href="exec: menu_off = 1 & gt ''mod_addedflavour_A704_Events'' , ''A704_WorkEv_1'' ">Valeri</a>') + ' is here delivery packages</b>'
  37. end
  38. end
  39. end
  40. --- mod_addedflavour_A704_Functions ---------------------------------