SRL Archive - OSR Help

Making my script to bank?


Keasbey

2012-05-08 09:32:54

So, if i wanted to make a script to bank.. could i use the following tutorial:
http://villavu.com/forum/showthread.php?t=80378

In order to get a skeleton?

Meaning that i can use this tutorial to bank in varrock west, obviously, but could i use the same method and provided code to bank in ardougne/draynor village, etc, etc?

And can someone link me to a tutorial that shows how to implement walking into a script?

I'm pretty new at this, but i catch on quick and am dying to make my own custom scripts :f:

Edit: have read a couple tutorials, and understand the basics of function,procedure, etc, etc, because i've done some scripting before.. just not recently or in this language >.>

Abu

2012-05-09 01:23:55

My advice when it comes to banking - utilise the SRL Include
(*
OpenBankFast
~~~~~~~~~~~~

.. code-block:: pascal

function OpenBankFast(Location: String): Boolean;

Opens the bank.
Valid arguments are:
'feb', 'falador east bank'
'fwb', 'falador west bank'
'veb', 'varrock east bank'
'vwb', 'varrock west bank'
'db' , 'draynor bank'
'akb', 'al-kharid bank'
'eb' (Edgeville Bank)
'ctb', 'catherby bank'
'clt', 'camelot bank'
'nab', 'north ardougne bank'
'sab', 'south ardougne bank'
'ynb', 'yanille bank'
'ngb', 'north gnome bank'
'sgb', 'south gnome bank'
'wgb', 'warrior guild bank'
'fgb', 'fishing guild bank'
'tavb', 'taverly bank'

.. note::

Author: Wizzup? and Nielsie95
Last Modified: Unknown

Example:

.. code-block:: pascal

if OpenBankFast('feb') then
Withdraw(...);
*)
(*
OpenBankNPC
~~~~~~~~~~~

.. code-block:: pascal

function OpenBankNPC: Boolean;

Opens the bank by using Banker.

.. note::

Author: Home
Last Modified: December 28 by Narcle

Example:

.. code-block:: pascal

if OpenBankNPC then
Withdraw(...);
*)

When it comes to walking, read the tutorial in my signature ;)

Keasbey

2012-05-09 08:55:05

thanks for the bank part, but when i go to use the ObjectDTM, my java says

-.-" Pisses me off, because i had the program working earlier, completely… i just didn't have time to finish my work i was doing, so i closed it.

Now i come back and its like this..

# A fatal error has been detected by the Java Runtime Environment:
#
# EXCEPTION_ACCESS_VIOLATION (0xc0000005) at pc=0x6d80a5b4, pid=4388, tid=5248
#
# JRE version: 6.0_31-b05
# Java VM: Java HotSpot(TM) Client VM (20.6-b01 mixed mode, sharing windows-x86 )
# Problematic frame:
# V [jvm.dll+0x1a5b4]
#
# If you would like to submit a bug report, please visit:
# http://java.sun.com/webapps/bugreport/crash.jsp
# The crash happened outside the Java Virtual Machine in native code.
# See problematic frame for where to report the bug


EDIT:
nvm, idk why but its working now >.>
my comp was probably just being gay last night.