View Full Version : Monitoring Mster Toma for a few hours.
Standing on all 3 points, but it doesn't appear. What could be the problem?
Search doesn't help :(
If you are waiting for him at a spawn he will not appear... i found out this the hard way and waited for him for 5 hours straight...
If ur on one spawn he will just skip you and go to the next one... i say just go back to town and check one spawn at a time and im sure u will be able to find him
I just teleported from point to point for 2 hours without nothing! Them summoned him and now it stands at the point and won't teleport to the next point.
handler:
EventHandler CREATED()
{
myself->SetTimerPeriod(1800);
}
EventHandler TIMER_FIRED(i6)
{
i6 = gg->Rand(90);
if( i6 > 60 )
{
myself->InstantTeleport(myself.sm,178849,-184342,-342);
}
else if( i6 > 30 )
{
myself->InstantTeleport(myself.sm,154132,-220070,-3404);
}
else
{
myself->InstantTeleport(myself.sm,151572,-174829,-1781);
}
}
Seems fine. In my server it spawn between those 3 locations
Found Toma at first location (missed it when looked for it). But there were two Tomas standing at one place (and plus one I summoned before)! Killed both of them. in few minutes it appeared again at same place and do not teleport :(
Will check my AI right now. Thanks m4rk
AI
class 1 master_toma : citizen
handler 13 8 // CREATED
variable_begin
"myself"
"_choiceN"
"_code"
"_from_choice"
variable_end
push_event // myself
push_const 704
add
fetch_i
push_const 1800
func_call 184614999 // func[SetTimerPeriod]
shift_sp -1
shift_sp -1
handler_end
handler 11 93 // TIMER_FIRED
variable_begin
"i6"
"myself"
"_choiceN"
"_code"
"_from_choice"
variable_end
push_event // i6
push_const 284
add
push_reg_sp
fetch_i
push_event // gg
push_const 632
add
fetch_i
push_const 90
func_call 218169344 // func[Rand]
shift_sp -1
assign4
shift_sp -1
push_event // i6
push_const 284
add
fetch_i4
push_const 60
greater
branch_false L159506
L159505
push_event // myself
push_const 704
add
fetch_i
push_event // myself
push_const 704
add
fetch_i // sm
push_const 544
add
fetch_i
push_const 178849
push_const 184342
negate
push_const 342
negate
func_call 184811596 // func[InstantTeleport]
shift_sp -4
shift_sp -1
jump L159507
L159506
push_event // i6
push_const 284
add
fetch_i4
push_const 30
greater
branch_false L159509
L159508
push_event // myself
push_const 704
add
fetch_i
push_event // myself
push_const 704
add
fetch_i // sm
push_const 544
add
fetch_i
push_const 154132
push_const 220070
negate
push_const 3404
negate
func_call 184811596 // func[InstantTeleport]
shift_sp -4
shift_sp -1
jump L159510
L159509
push_event // myself
push_const 704
add
fetch_i
push_event // myself
push_const 704
add
fetch_i // sm
push_const 544
add
fetch_i
push_const 151572
push_const 174829
negate
push_const 1781
negate
func_call 184811596 // func[InstantTeleport]
shift_sp -4
shift_sp -1
L159510
L159507
handler_end
Hmmm, my AI is absolutelly same. Hmmm. I think I did something wrong. Will check on next server restart.
server restart should fix this.
It does work quite fine. We have many that needed him (lots that complain) but he does spawn. Just be patient and dont sit and hover in one spot :p