Graal Forums

Graal Forums (https://forums.graalonline.com/forums/index.php)
-   NPC Scripting (https://forums.graalonline.com/forums/forumdisplay.php?f=8)
-   -   script help (https://forums.graalonline.com/forums/showthread.php?t=47056)

jrm_iii 08-12-2003 07:23 PM

script help
 
how would i script something, so if the account name isnt something, the npc would do something

Neoreno 08-12-2003 07:44 PM

A ! and a strequals may come in handy.

Dach 08-12-2003 07:54 PM

commands.rtf -> newfeatures docs -> forums

try to use the prescribed order for learning scripts and commands

jrm_iii 08-12-2003 08:03 PM

i know what they do... i just dont know how to write out the commands to make it do that...

jrm_iii 08-12-2003 08:10 PM

heres what im tryin to do...
im makin auto-defense turrets for my house.
right now, i have if (playerenters) shootball; sleep 0.2
then the shootball; sleep 0.2 is copied a lot.
i need some way to make it fire if it is not my account.
and i need a more efficient way to make it fire. (i tried the while command, but it isnt workin)

Mykel 08-12-2003 08:18 PM

put this before everything.

NPC Code:
if (!playerenters&&strequals(#a,youraccount)){
your script


jrm_iii 08-12-2003 08:51 PM

i put shootball; sleep 0.2
after it (using a different account)
and it doesnt fire

Neoreno 08-12-2003 10:28 PM

Accounts are not recognized offline.

VeX_RaT_Boy 08-12-2003 10:40 PM

Quote:

Originally posted by Neoreno
Accounts are not recognized offline.
They are, if you used that account last time online.


Quote:

Originally posted by jrm_iii
i put shootball; sleep 0.2
after it (using a different account)
and it doesnt fire

Did you have a } at the end?


Also, insted of lots of sleep, you should do a loop...

SaijinGohan 08-13-2003 12:14 AM

Quote:

Originally posted by Mykel
put this before everything.

NPC Code:
if (!playerenters&&strequals(#a,youraccount)){
your script


Try:

NPC Code:
if (playerenters&&!strequals(#a,youraccount)) {
yourscript;
}



As for the balls without copy and pasting.. I would use a timeout. I would script it for ya but that's illegal.

Mykel 08-13-2003 12:52 AM

Quote:

Originally posted by SaijinGohan


Try:

NPC Code:
if (playerenters&&!strequals(#a,youraccount)) {
yourscript;
}



As for the balls without copy and pasting.. I would use a timeout. I would script it for ya but that's illegal.

Oopsie, thx.

osrs 08-14-2003 02:25 AM

Don't try to help if you aren't scripter,Mykel :p


All times are GMT +2. The time now is 03:45 PM.

Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2026, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.