wafihsn
Members-
Posts
6 -
Joined
-
Last visited
-
Feedback
0%
Profile Information
-
Gender
Male
wafihsn's Achievements
Newbie (1/10)
0
Reputation
-
thanx guys . its already been working thanx alot for ur replays
-
last qustion for today , what methoed used to place a counter on client screen ? lets say counter for how many bones the script already collected or feathers or what ever i want ?
-
great i understand the way u used it , but there is one problem , if the player get back on the same path where he connot deploy logs and fire them , how can i tell the player to change direction if there is any problem firing them ?
-
my qustion is this : how do i get object state ? i will explain , lets say i wanna chope down a tree , but if its already beeing choped or there is a player choping it i want the scrept to select another tree or wait , same this with logs , when i fire logs i want the script wait until the log is fired and then fire the next log , thank , i know im kind of "alot of qustion" guy but i issuer u when i get us for the work with this api ill be much more help then "need help" , waiting for replay thanx ..
-
[HELP] how to detect "Attack Mode" and how to intract with entinty
wafihsn replied to wafihsn's topic in Scripting Help
thanx man .. im on the right way now -
Hey there , im new on runescape os and im making my own script . i am having issu with 2 things , i need to check if my player is in "attack mode" then wait until he is finish . second problem is i can intract with entitys , i want my player to collect bones but nothing happens , ill paste my code and plz tell me what i did wrong.. if(getInventory().isFull()) getInventory().interact("Bury", "Bones"); else{ Entity bones = getObjects().closest("Bones"); NPC chiken = getNpcs().closest("Chicken"); NPC cow = getNpcs().closest("Cow"); NPC cowcalf = getNpcs().closest("Cow Calf"); if (chiken != null) //attack chicken if (!myPlayer().isAnimating()) chiken.interact("Attack"); if (cow != null) //attack cow if (!myPlayer().isAnimating()) cow.interact("Attack"); if (cowcalf != null) //attack cow calf if (!myPlayer().isAnimating()) cowcalf.interact("Attack"); if (bones != null) //take Bones if (!myPlayer().isAnimating()) bones.interact("Take"); }