HeroEngine Forums
Welcome, Guest. Please login or Register for HeroCloud Account.

Author Topic: Pay per script  (Read 1804 times)

BCI3DLLC

  • General Accounts
  • *
  • Posts: 64
    • View Profile
    • FoxySoft
Pay per script
« on: Apr 07, 13, 08:55:52 AM »

I am offering 100$ for a time of day cycle script.  I actually have one already in place but it is broken.  I am looking for someone to fix it or write one that works.

Thank you very much.  PM me if your interested.
Logged
Games for Grown Ups

Thazager

  • General Accounts
  • *
  • Posts: 1155
  • Never stop learning
    • View Profile
    • Heroes and Villains MMORPG
Re: Pay per script
« Reply #1 on: Apr 07, 13, 02:39:36 PM »

Here two methods of adding it in. The first method is client side and might not be seen at the same time on everyone's screen. The second adds it to the server so that everyone sees it the same way.
----------------------------------------------------------------------------------------------------------------

To set it on client side: (this will be a bit fast so you can see it, change the value 7200 to your desired value)

In E_playerAccountClassMethods, in method HE_OnReplicationNodeAdded, at the bottom before the return add

SetEnviroDeltaTime( 7200 )

-----------------------------------------------------------------------------------------------------------------
To set it on the server side so everyone has the same time. You might need the server to sleep before this works.

In DayNightCycleClassMethods, at the bottom of the script add in this function.

shared function StartDayNight(theAccount as NodeRef)
  theAccount.E_IssueDayNightEvent()
.


In E_AccountClassMethods, in method HE_PostCharacterActivated, at the bottom add this line before the end.

  E_DayNightCycleClassMethods:StartDayNight(theAccount)



add:
 after our server reset, it looks like the serverside script did not quite work. But it should be something simple like calling the script you want to use. not a huge function to write.
« Last Edit: Apr 07, 13, 04:20:34 PM by Thazager »
Logged

BCI3DLLC

  • General Accounts
  • *
  • Posts: 64
    • View Profile
    • FoxySoft
Re: Pay per script
« Reply #2 on: Apr 07, 13, 11:44:45 PM »

Thank you Thazagar.  It didn't work so i am still looking for help with this.  If you want to work on this I would be glad to pay you for your time.  I know nothing about scripting and programming but I can copy and paste and compile and submit.  Thatís about it.  I had programmers but they went on to other projects until I can start paying their salaries again.
Logged
Games for Grown Ups

Thazager

  • General Accounts
  • *
  • Posts: 1155
  • Never stop learning
    • View Profile
    • Heroes and Villains MMORPG
Re: Pay per script
« Reply #3 on: Apr 08, 13, 03:51:35 PM »

Not looking for money, but thought I might help. We are not at this stage yet in our game, as it is not a vital part, but when I need to write ours up, I can post a working version.
Logged

BCI3DLLC

  • General Accounts
  • *
  • Posts: 64
    • View Profile
    • FoxySoft
Re: Pay per script
« Reply #4 on: Apr 09, 13, 11:56:13 AM »

Ok Thazagar thanks for the effort
Logged
Games for Grown Ups

BCI3DLLC

  • General Accounts
  • *
  • Posts: 64
    • View Profile
    • FoxySoft
Re: Pay per script
« Reply #5 on: Apr 10, 13, 02:20:51 PM »

Thazagar it works, your code works.  You just have to make sure that the area number was the correct ID number in the area you want the change to happen.

Next challenge will be to make it change in many areas.
Logged
Games for Grown Ups

Thazager

  • General Accounts
  • *
  • Posts: 1155
  • Never stop learning
    • View Profile
    • Heroes and Villains MMORPG
Re: Pay per script
« Reply #6 on: Apr 11, 13, 12:48:12 AM »

Good, glad it works. I thought it might be something easy to fix it.
Logged