Jump to content

Payment Script


aninerfan808

Recommended Posts

I am trying to put together a script that would pay the player for going to a certain spot and neither staying in an area for a game hour or preferably performing an action by triggering an animation. I will most likely have it done by walking over an activator. Any advise would be appreciated thanks in advance. Edited by aninerfan808
Link to comment
Share on other sites

Here's some code to get you started for your activator. It's really rough but it's somewhere to start :thumbsup:

 

scn PlayerPaySCRIPT

short doOnce1
short doOnce2
float time

begin GameMode

if getdistance player <= 500
    if doOnce1 == 0
         set time to (I forget the function but put the one that checks game time here)
         set doOnce1 to 1
    endif
    if (function that checks game time) >= time + 2 (however you put the hours in, say you want them to wait for 2 hours)
         if doOnce2 == 0
              player.additem f 250
              set doOnce2 to 1
        endif
    endif
endif

end

Edited by jamochawoke
Link to comment
Share on other sites

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...