Whenever using public scripts (yes paid scripts apply) you got to really keep those hours minimal. This isn't pre bot nuke days Unless it's a newer release then the bot detection system hasn't had much time to learn the behavior yet. But in most cases the bot your running has been detected by Jagex hundreds if not thousands of times depending on user count and how long it has been available to users. Private scripts greatly reduce this risk factor however it's not the holy grail or anything.
IP does play a role too, but to my belief it mainly plays a role during the creation of the account. So if you don't gold farm with multiple accounts, then I believe IP shouldn't be a big issue for you. If you do gold farm then there runs the risk of chain bans.