NPC Mission

Discussion in 'Programming & Scripting' started by Limos, Mar 10, 2014.

  1. Activity

    Activity Member

    Joined:
    Apr 7, 2016
    Messages:
    159
    Likes Received:
    22
    Best Answers:
    0
    Well, the monster died normally but also i didn't get count for the mission, it is just a normal monster dying.
     
  2. Limos

    Limos Premium User

    Joined:
    Jun 7, 2010
    Messages:
    10,017
    Likes Received:
    2,930
    Best Answers:
    7
    Make sure the startvalue also matches with the one in the NPC script.
     
    Activity likes this.
  3. Activity

    Activity Member

    Joined:
    Apr 7, 2016
    Messages:
    159
    Likes Received:
    22
    Best Answers:
    0
    As i posted before, check it and tell me if there is anything wrong.
     
  4. StreamSide

    StreamSide Joseluis Gonzalez

    Joined:
    Aug 31, 2007
    Messages:
    2,779
    Likes Received:
    584
    Best Answers:
    10
    post the codes (pastebin or wateva)
     
    Activity likes this.
  5. Activity

    Activity Member

    Joined:
    Apr 7, 2016
    Messages:
    159
    Likes Received:
    22
    Best Answers:
    0
    @StreamSide
     
  6. StreamSide

    StreamSide Joseluis Gonzalez

    Joined:
    Aug 31, 2007
    Messages:
    2,779
    Likes Received:
    584
    Best Answers:
    10
    did you registered it?
     
    Activity likes this.
  7. Activity

    Activity Member

    Joined:
    Apr 7, 2016
    Messages:
    159
    Likes Received:
    22
    Best Answers:
    0
    Yea at login.lua :D, its players script.
     
  8. Limos

    Limos Premium User

    Joined:
    Jun 7, 2010
    Messages:
    10,017
    Likes Received:
    2,930
    Best Answers:
    7
    Change 4 in the missions table in the NPC to 2, the dragon lord startvalue should be 2 then.
    And you probable have to change the isSummon function to this (for 0.4 versions where getCreatureMaster returns nil).
    Code (Text):
    1.  
    2. function isSummon(cid)
    3.       return getCreatureMaster(cid) ~= nil
    4. end
    5.  
     
    Activity likes this.
  9. Activity

    Activity Member

    Joined:
    Apr 7, 2016
    Messages:
    159
    Likes Received:
    22
    Best Answers:
    0
    Change it at creatureevents or in 050-functions?
     
  10. Limos

    Limos Premium User

    Joined:
    Jun 7, 2010
    Messages:
    10,017
    Likes Received:
    2,930
    Best Answers:
    7
    Replace that function in 050-function.lua.
     
    Activity likes this.
  11. Activity

    Activity Member

    Joined:
    Apr 7, 2016
    Messages:
    159
    Likes Received:
    22
    Best Answers:
    0
    Gonna try it, thanks.
     
  12. Activity

    Activity Member

    Joined:
    Apr 7, 2016
    Messages:
    159
    Likes Received:
    22
    Best Answers:
    0
    @Limos Its working perfectly but its only once mission per character, i tried to change the time to another day but still same msg that i've done the quests, is it possible to do it everyday? Exhaustion time.
     
  13. Limos

    Limos Premium User

    Joined:
    Jun 7, 2010
    Messages:
    10,017
    Likes Received:
    2,930
    Best Answers:
    7
  14. Activity

    Activity Member

    Joined:
    Apr 7, 2016
    Messages:
    159
    Likes Received:
    22
    Best Answers:
    0
    Actually, i already read it and i couldn't understand anything :D cuz it is another tfs so i can't understand anything.
    EDIT: @Limos I tried with this exhaustion time, it is working good if i do missions with char didn't done missions before its working good, until now there isn't problem in next day i msg the npc with the same player and i find it working good with the exhaustion but i can take the reward without killing the monsters like Hi, mission, yes, REWARD without killing any monster.
    http://pastebin.com/RaCDnxt3
    thanks in advance :).
     
    Last edited: Apr 16, 2016
  15. Activity

    Activity Member

    Joined:
    Apr 7, 2016
    Messages:
    159
    Likes Received:
    22
    Best Answers:
    0
  16. Activity

    Activity Member

    Joined:
    Apr 7, 2016
    Messages:
    159
    Likes Received:
    22
    Best Answers:
    0
    Bump ^ may someone check out, what is the problem ,please?
     
  17. Zarkanis

    Zarkanis New Member

    Joined:
    May 28, 2017
    Messages:
    3
    Likes Received:
    0
    Best Answers:
    0
    This tutorial is compatible whith tf 1.2?
     

Share This Page

Loading...