Re: New option idea
Posted: Mon Jan 21, 2013 4:10 am
Because you changed the 'if' value to 1 it wont stop unless there are 2 players, not one. When it prints the names, how many does it print?
Code: Select all
Use MACRO: Executing RoMScript "SetInstanceLevel("normal")".
toonalt
Waiting till it's less crowded
toonalt
Code: Select all
Waiting till it's less crowded
I'm not sure I understand. Are you saying it only prints 1 name even though there are others. The way you have it it should printvo2male wrote:but it still printed the name
and
well i guess its because it counts the "players"Code: Select all
Waiting till it's less crowded
Code: Select all
char1
char2
etc..
Waiting till it's less crowded
char1
char2
etc..
char1
char2
etc..
char1
char2
etc..
Probably more like 600 although it tends to vary a bit.vo2male wrote:is 500 the max distance it could detect players?
Double check that they are on your friends list and that you didn't misspell them.vo2male wrote:hmm..strange as it was working fine a while ago.. and now it seems not to ignore friends..
Code: Select all
until 0 == CountPlayers(500,true,true)
Code: Select all
function checkcrowd()
if CountPlayers(600,true,true) > 0 then
print("Waiting till it's less crowded")
repeat
yrest(3000)
until 1 > CountPlayers(600,true,true)
end
end
Code: Select all
friend = player:findNearestNameOrId("friendname")
print(CPawn(friend.Address):isFriend())
Code: Select all
Command> friend = player:findNearestNameOrId("friendname")
Command> print (CPawn(friend.Address):isFriend())
false
Code: Select all
<friend name="friendname" />
Code: Select all
table.print(settings.profile.friends)
Code: Select all
Command> table.print(settings.profile.friends)
table: 04CC30D8
1: asdawdq
2: MyOtherCharacter2
3: Elite_Mob_Name1
4: Elite_Mob_Name2
Code: Select all
settings.profile.friends = {"Incomplete Bloody Beast"}
Code: Select all
settings.profile.friends = {"Incomplete Bloody Beast"}
Code: Select all
<friends>
<!-- names of friends we help fighting or enemys we don't want to attack -->
<!-- for umlauts use \129 (ue),\132 (ae),\148 (oe) e.g. K\132fer -->
<friend name="MyOtherCharacter1" />
<friend name="MyOtherCharacter2" />
<friend name="Elite_Mob_Name1" />
<friend name="Elite_Mob_Name2" />
</friends>
Code: Select all
settings.profile.friends = {"Incomplete Bloody Beast"}
Code: Select all
settings.profile.friends = {"Incomplete Bloody Beast"}
Code: Select all
<friend name="MyOtherCharacter1" />
<friend name="MyOtherCharacter2" />
<friend name="Elite_Mob_Name1" />
<friend name="Elite_Mob_Name2" />
rock5 wrote:So how did you add your friends to your list? Did you add them to the friends list in your profileCode: Select all
<friends> <!-- names of friends we help fighting or enemys we don't want to attack --> <!-- for umlauts use \129 (ue),\132 (ae),\148 (oe) e.g. K\132fer --> <friend name="MyOtherCharacter1" /> <friend name="MyOtherCharacter2" /> <friend name="Elite_Mob_Name1" /> <friend name="Elite_Mob_Name2" /> </friends>[/quote] what do you mean friends? do i have to add the name of my alts or other players on the friendlist of profile? because i just added them on the game's friend options or "O"
Code: Select all
settings.profile.friends = {"Incomplete Bloody Beast"}
Code: Select all
changeOptionFriendMob("friend", "Incomplete Bloody Beast", "Add")
Code: Select all
changeOptionFriendMob("friend", "Incomplete Bloody Beast", "Add")
changeOptionFriendMob("friend", "PlayerName", "Add")
changeOptionFriendMob("friend", "PlayerName", "Add")
changeOptionFriendMob("friend", "PlayerName", "Add")
Code: Select all
function checkcrowd()
if CountPlayers(600,true,true) > 0 then
print("Waiting till it's less crowded")
repeat
yrest(3000)
until 1 > CountPlayers(600,true,true)
end
end
Code: Select all
checkcrowd()
Code: Select all
<friends>
<!-- names of friends we help fighting or enemys we don't want to attack -->
<!-- for umlauts use \129 (ue),\132 (ae),\148 (oe) e.g. K\132fer -->
<friend name="" />
<friend name="" />
<friend name="Elite_Mob_Name1" />
<friend name="Elite_Mob_Name2" />
</friends>
Code: Select all
Use MACRO: Executing RoMScript "SetInstanceLevel("normal")".
PlayerName(which is already added)
Waiting till it's less crowded
Followed by PlayerName(which is already added)
PlayerName(which is already added)
PlayerName(which is already added)
PlayerName(which is already added)
PlayerName(which is already added)
PlayerName(which is already added)
Code: Select all
changeOptionFriendMob("friend", "PlayerName", "Add")
Code: Select all
<?xml version="1.0" encoding="utf-8"?><waypoints type="TRAVEL">
<onload>
changeOptionFriendMob("friend", "myalt", "Add")
function checkcrowd()
if CountPlayers(600,true,true) > 0 then
print("Waiting till it's less crowded")
repeat
yrest(3000)
until 1 > CountPlayers(600,true,true)
end
end
</onload>
<!-- # 1 --><waypoint x="-11864" z="41965" y="793">checkcrowd() </waypoint>
<!-- # 2 --><waypoint x="-11660" z="41995" y="793"> </waypoint>
</waypoints>
Code: Select all
We use the normal waypoint path test.xml now.
Waypoint #2 is closer then #1. Hence we start with waypoint #2.
1 MyOtherCharacter1
2 MyOtherCharacter2
3 Elite_Mob_Name1
4 Elite_Mob_Name2
5 myalt
Moving to waypoint #2, (-11660, 41995)
Moving to waypoint #1, (-11864, 41965)
Moving to waypoint #2, (-11660, 41995)
Moving to waypoint #1, (-11864, 41965)
Moving to waypoint #2, (-11660, 41995)
Moving to waypoint #1, (-11864, 41965)
Moving to waypoint #2, (-11660, 41995)
Moving to waypoint #1, (-11864, 41965)