CreatureEvent [CreatureEvent/Npc] Killing in the name of...

Discussion in 'GlobalEvents, Spells & CreatureEvents' started by Darkhaos, Mar 16, 2011.

  1. LucasFerraz

    LucasFerraz Systems Analyst

    Joined:
    Jun 10, 2010
    Messages:
    2,855
    It's not working fine, look:

    "03:05 Grizzly Adams: There you can see the following tasks, please tell me the number of the task that you want to do.
    03:05 Grizzly Adams: Number - Name
    1 - Trolls [Done]
    2 - Goblins
    3 - Rotworms
    4 - Cyclops
    5 - Crocodiles [Done]
    6 - Tarantulas
    7 - Carniphilas
    8 - Stone Golems
    9 - Mammoths
    10 - Ice Golems
    11 - Quaras Scout
    12 - Quaras
    13 - Water Elementals
    14 - Earth Elementals
    15 - Energy Elementals
    16 - Fire Elementals
    17 - Mutated Rats
    18 - Giant Spiders
    19 - Hydras
    20 - Sea Serpents
    21 - Behemoths
    22 - Serpents Spawn
    23 - Green Djinns
    24 - Blue Djinns
    25 - Pirates
    26 - Pirates
    27 - M"

    NPC didn't sayd all, possible to make a better way?
     
  2. Cykotitan

    Cykotitan Experienced G'

    Joined:
    Nov 4, 2008
    Messages:
    16,897
    maybe because the message is too long?!
     
  3. thalesvasc

    thalesvasc New Member

    Joined:
    Sep 28, 2010
    Messages:
    42
    @Cyko~ , sorry for this question but...Where we paste the 1st, 2nd and 3rd codes? :S
     
  4. Cykotitan

    Cykotitan Experienced G'

    Joined:
    Nov 4, 2008
    Messages:
    16,897
    if you don't know, you should use darkhaos' script because you probably won't know how to make the movement either and i lost it.
     
  5. Darkhaos

    Darkhaos (:

    Joined:
    Apr 17, 2008
    Messages:
    1,922
    Right, i forgot that x)

    @Lucas

    Change
    [lua] local text = "Number - Name"
    for i = 1, table.maxn(tasks) do
    text = text .. "\n" .. i .. " - " .. tasks.raceName .. (getCreatureStorage(cid, tasks.questStarted) == 2 and " [Done]" or "")
    end
    doShowTextDialog(cid, 5956, text)
    [/lua]

    With:
    [lua] for i = 1, table.maxn(tasks) do
    selfSay(i .. " - " .. tasks.raceName .. (getCreatureStorage(cid, tasks.questStarted) == 2 and " [Done]\n" or "\n"), cid)
    end[/lua]
     
  6. Dankoo

    Dankoo Well-Known Member

    Joined:
    Sep 4, 2010
    Messages:
    1,006


    lololololololol

    quests.xml = 27k lines lol

    Why not?

    http://otland.net/f35/parsing-storage-values-inside-quest-xml-89354/index5.html#post1172069
     
  7. Cykotitan

    Cykotitan Experienced G'

    Joined:
    Nov 4, 2008
    Messages:
    16,897
  8. Dankoo

    Dankoo Well-Known Member

    Joined:
    Sep 4, 2010
    Messages:
    1,006
    Cyk, btw.. That cpp isn't working for me, take a look at that topic again...
     
  9. Dankoo

    Dankoo Well-Known Member

    Joined:
    Sep 4, 2010
    Messages:
    1,006
    btw cyko... Bosses...? :]]]]]
     
  10. Cykotitan

    Cykotitan Experienced G'

    Joined:
    Nov 4, 2008
    Messages:
    16,897
  11. dgprado

    dgprado Member

    Joined:
    Apr 5, 2009
    Messages:
    789
    forgoth...
     
    Last edited: Mar 27, 2011
  12. GuHB

    GuHB Member

    Joined:
    Dec 14, 2009
    Messages:
    631
    Should have the tag on monsters
    [lua]

    <script>
    <event name="KillingInTheNameOf"/>
    </script>[/lua]

    Because isn't working for me on rev 0.4 r3884.

    I get the Task, but dont count the monster on default. In another version it worked fine.
     
  13. LucasFerraz

    LucasFerraz Systems Analyst

    Joined:
    Jun 10, 2010
    Messages:
    2,855
    I'm using the same server than you and I don't need it
     
  14. GuHB

    GuHB Member

    Joined:
    Dec 14, 2009
    Messages:
    631
    To me, Isn't work.. Dont count the monster.
     
  15. kykyske

    kykyske New Member

    Joined:
    Apr 29, 2011
    Messages:
    10
    It can be used for version 8.54?
     
  16. kykyske

    kykyske New Member

    Joined:
    Apr 29, 2011
    Messages:
    10
    It can be used for version 8.54?
     
  17. d4rkbl0od

    d4rkbl0od Member

    Joined:
    Mar 21, 2008
    Messages:
    160
    cyyykooo, reupload quests.xml??? ty!
     
  18. Bntz

    Bntz Dprethor!

    Joined:
    Mar 16, 2009
    Messages:
    101
    x2 Any Fix? D:
     
  19. LucasFerraz

    LucasFerraz Systems Analyst

    Joined:
    Jun 10, 2010
    Messages:
    2,855
    It's workin' 100%
     
  20. Darkhaos

    Darkhaos (:

    Joined:
    Apr 17, 2008
    Messages:
    1,922
    Updated npc script:
    -Some changes in texts.
    -Some codes to prevent errors on console.
    -Now you can start task saying task name or number.
     

Share This Page