Board |
Bugs.old [context] |
Sender |
Astark |
Date |
Mon Aug 15 17:50:18 2022 |
To |
all |
Subject |
re cevar again |
|
Here's a snippet of the snipe mprog
33. elseif text1:find("^fire") and num_sniped < 3 and
ch:getval("r10_story_progress") == 7 then
34. sendtochar(ch,"You blow away a firestarter!\n\r")
35. if num_sniped < 2 then
36. delay(2, function()
37. sendtochar(ch,"The crowd mills about, unsure of what happened.\n\r")
38. end)
[Hit Return to continue]
39. else
40. ch:setval("r10_story_progress", 8, true)
41. delay(2, function()
42. for _,mobile in ipairs(mob.room.mobs) do -- remove the wizi exall
mob so they can leave
43. if mobile.vnum == rvnum(413) then
44. mobile:destroy()
45. end
46. end
47. mob:mload(rvnum(415)) -- firestarter lieutenant
48. mob:mload(rvnum(416)) -- firestarter
49. mob:mload(rvnum(416)) -- firestarter x2
50. sendtochar(ch,"Three firestarter's have come onto the roof looking
for you!\n\r")
51. for _,mobile in ipairs(mob.room.mobs) do -- and make them attack
52. if mobile.name:find("firestarter") then -- use find because both
mobprotos have firestarter in the name
53. mobile:kill(mob:randchar())
54. end
55. end
56. end)
57. end
58. else
59. sendtochar(ch,"They aren't here.\n\r")
As far as I can tell it should reload the mobs.
|