Graal Forums

Graal Forums (https://forums.graalonline.com/forums/index.php)
-   NPC Scripting (https://forums.graalonline.com/forums/forumdisplay.php?f=8)
-   -   whats wrong with my script? (https://forums.graalonline.com/forums/showthread.php?t=73619)

theHAWKER 04-23-2007 12:56 AM

whats wrong with my script?
 
I have an online tile editor that i want to be only usable when your in thies 4 rooms. It works with one room but not with 4:
PHP Code:

if ( weaponfired ) {
if (
strequals(#L,room1.nw||#L,room2.nw||#L,room3.nw||#L,room3.nw)) { 


xXziroXx 04-23-2007 01:12 AM

Quote:

Originally Posted by theHAWKER (Post 1302089)
I have an online tile editor that i want to be only usable when your in thies 4 rooms. It works with one room but not with 4:
PHP Code:

if ( weaponfired ) {
if (
strequals(#L,room1.nw||#L,room2.nw||#L,room3.nw||#L,room3.nw)) { 


PHP Code:

if ( weaponfired ) {
  if (
strequals(#L,room1.nw) || strequals(#L,room2.nw) || strequals(#L,room3.nw) || strequals(#L,room3.nw)) {
  
}


[/QUOTE]

DustyPorViva 04-23-2007 01:17 AM

PHP Code:

if (createdsetstring this.rooms,room1.nw,room2.nw,room3.nw,room4.nw;
if (
weaponfired) {
  if (
strcontains(#s(this.rooms),#L)) {
    //stuff
  
}


Would be more along the lines of what you're looking for, I believe.

theHAWKER 04-23-2007 01:18 AM

ok, thank you :D


All times are GMT +2. The time now is 11:58 AM.

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