User Tag List

Page 2 of 2 FirstFirst 1 2
Results 8 to 9 of 9

Thread: [C++]Script for revive

  1. #8
    Founder <span style='color: #FF4500'>Tommy</span>'s Avatar
    Join Date
    Apr 2013
    Posts
    7,391
    XP
    3,449,104
    Level
    378
    Thanks
    889
    Thanked 1,856 Times in 1,119 Posts
    Quote Originally Posted by Rochet2 View Post
    QUEST_STATUS_COMPLETE is probably wrong. Completing is when all objectives are complete.
    QUEST_STATUS_REWARDED is probably when a quest is "completed" and by that I mean returned to the questgiver and rewarded to the player.

    Does player->SetMoney(10);//test
    get called?
    Oh, forgot about the QUEST_STATUS_REWARDED data type logic. Not sure if SetMoney gets called, but "ModifyMoney(val)" is the method he should probably be using.

  2. #9
    Original Poster
    Enthusiast
    Join Date
    Feb 2015
    Posts
    23
    XP
    1,595
    Level
    11
    Thanks
    5
    Thanked 1 Time in 1 Post
    Quote Originally Posted by Rochet2 View Post
    QUEST_STATUS_COMPLETE is probably wrong. Completing is when all objectives are complete.
    QUEST_STATUS_REWARDED is probably when a quest is "completed" and by that I mean returned to the questgiver and rewarded to the player.

    Does player->SetMoney(10);//test
    get called?
    Tested it with QUEST_STATUS_REWARDED. SetMoney or ModifyMoney is not called. Nothing happened. Still, thank you for your posts, really appriciate it :-)
    EDIT:I've recompiled whole server, now command ModifyMoney is working.
    EDIT2:Well, this is intresting. I've pulled player->RessurectPlayer(0.5f,false); before if statement and now compiler gives this error:‘class Player’ has no member named ‘RessurectPlayer’
    Any ideas?
    EDIT3:Well, i was really stupid :D Error was couse of mispelling :D Now it's fully working :-)
    Last edited by madman1851; 08-07-2016 at 01:50 PM.
    Achievements:
    1 year registered Level X

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •