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,856
    Likes Received:
    86
    Best Answers:
    0
    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
    Likes Received:
    813
    Best Answers:
    3
    maybe because the message is too long?!
     
  3. thalesvasc

    thalesvasc New Member

    Joined:
    Sep 28, 2010
    Messages:
    42
    Likes Received:
    1
    Best Answers:
    0
    @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
    Likes Received:
    813
    Best Answers:
    3
    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
    Likes Received:
    172
    Best Answers:
    0
    Right, i forgot that x)

    @Lucas

    Change
    Code (Lua):
    1.         local text = "Number  -  Name"
    2.         for i = 1, table.maxn(tasks) do
    3.             text = text .. "\n" .. i .. "  -  " .. tasks[i].raceName .. (getCreatureStorage(cid, tasks[i].questStarted) == 2 and " [Done]" or "")
    4.         end
    5.         doShowTextDialog(cid, 5956, text)
    6.  
    With:
    Code (Lua):
    1.         for i = 1, table.maxn(tasks) do
    2.             selfSay(i .. " - " .. tasks[i].raceName .. (getCreatureStorage(cid, tasks[i].questStarted) == 2 and " [Done]\n" or "\n"), cid)
    3.         end
     
  6. Dankoo

    Dankoo Well-Known Member

    Joined:
    Sep 4, 2010
    Messages:
    1,006
    Likes Received:
    28
    Best Answers:
    0
    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
    Likes Received:
    813
    Best Answers:
    3
  8. Dankoo

    Dankoo Well-Known Member

    Joined:
    Sep 4, 2010
    Messages:
    1,006
    Likes Received:
    28
    Best Answers:
    0
    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
    Likes Received:
    28
    Best Answers:
    0
    btw cyko... Bosses...? :]]]]]
     
  10. Cykotitan

    Cykotitan Experienced G'

    Joined:
    Nov 4, 2008
    Messages:
    16,897
    Likes Received:
    813
    Best Answers:
    3
  11. dgprado

    dgprado Member

    Joined:
    Apr 5, 2009
    Messages:
    789
    Likes Received:
    21
    Best Answers:
    0
    forgoth...
     
    Last edited: Mar 27, 2011
  12. GuHB

    GuHB Member

    Joined:
    Dec 14, 2009
    Messages:
    630
    Likes Received:
    9
    Best Answers:
    0
    Should have the tag on monsters
    Code (Lua):
    1.  
    2.  
    3.         <script>
    4.     <event name="KillingInTheNameOf"/>
    5. </script>
    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,856
    Likes Received:
    86
    Best Answers:
    0
    I'm using the same server than you and I don't need it
     
  14. GuHB

    GuHB Member

    Joined:
    Dec 14, 2009
    Messages:
    630
    Likes Received:
    9
    Best Answers:
    0
    To me, Isn't work.. Dont count the monster.
     
  15. kykyske

    kykyske New Member

    Joined:
    Apr 29, 2011
    Messages:
    10
    Likes Received:
    0
    Best Answers:
    0
    It can be used for version 8.54?
     
  16. kykyske

    kykyske New Member

    Joined:
    Apr 29, 2011
    Messages:
    10
    Likes Received:
    0
    Best Answers:
    0
    It can be used for version 8.54?
     
  17. d4rkbl0od

    d4rkbl0od Member

    Joined:
    Mar 21, 2008
    Messages:
    160
    Likes Received:
    7
    Best Answers:
    0
    cyyykooo, reupload quests.xml??? ty!
     
  18. Bntz

    Bntz Dprethor!

    Joined:
    Mar 16, 2009
    Messages:
    101
    Likes Received:
    1
    Best Answers:
    0
    x2 Any Fix? D:
     
  19. LucasFerraz

    LucasFerraz Systems Analyst

    Joined:
    Jun 10, 2010
    Messages:
    2,856
    Likes Received:
    86
    Best Answers:
    0
    It's workin' 100%
     
  20. Darkhaos

    Darkhaos (:

    Joined:
    Apr 17, 2008
    Messages:
    1,922
    Likes Received:
    172
    Best Answers:
    0
    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

Loading...