!?TM2; daily timer for every color (if script active)
!!OW:H-1/2331/0; store current color's number of heroes in v2331
!!DO2343/1/v2331/1:P; loop through every hero a player has
!?FU2343; hero loop function for Estates
!!OW:H-1/2332/x16; store x16th hero of that player in v2332
!!IF:V236/1 Wv2332; set w var reference to current hero, set flag 236
!!HEv2332:S13/?y1 E?y2/?y3/1 X?y14/?y13/d/d/d/d/d; get Estates expertise y1, hero experience y2 and level y3, hero skill spec (y14=0 and y13=13 if Estates)
!!FU&y1=0/w47=0:E; exit if that hero has no Estates and no w47
!!VRy10:S1; full modifier for Expert Estates and in general to avoid division by zero
!!VRy10&y1=2:S2; half for Advanced Estates
!!VRy10&y1=1:S4; quarter for Basic Estates
!!VRy4&y1>0:Sy2 :10000 *v2333 :y10; calculate gold according to expertise and experience
!!VRy4&y4>2000/y13<>13:S2000; max of +2000 Gold/day (from lvl 25 on) unless Estates specialist
!!VRy4&y4>5000:S5000; max of +5000 Gold/day (around lvl 30) even if Estates specialist
!!OW&y1>0:R-1/6/dy4; give/remove that gold
I remember there was a hack program (similar to artmoney) which could compare two states of a game and say where the hex were changed. I am noob into hex editing, but from what I understood, UN:C does somewhat of a hex editing job, am I wrong?
So one should just find the hex where the gold is displayed, then add the result from script to it. Only what I suppose, I may be wrong.
(This post was last modified: 01.06.2014 02:03 by Valery.)