Graal Forums

Graal Forums (https://forums.graalonline.com/forums/index.php)
-   NPC Scripting (https://forums.graalonline.com/forums/forumdisplay.php?f=8)
-   -   Simple Warp Script [Help] (https://forums.graalonline.com/forums/showthread.php?t=134266821)

Bleachlover551 07-20-2012 12:27 AM

Simple Warp Script [Help]
 
okay so i have this in my npc.
PHP Code:

// Made By Toshi! (Developer)
if (created) {
  
showcharacter;
  
setcharprop #3,head.png;
  
setcharprop #C0,orange;
  
setcharprop #C1,white;
  
setcharprop #C2,blue;
  
setcharprop #C3,red;
  
setcharprop #p1,rainbow_chinahat.png;
  
setcharprop #C4,black;
  
setcharprop #2,;
  
setcharprop #n,Toshi;
  
ap 100;
  
shieldpower 1;
  
dir 2;
}
if (
playertouchsme) {
  
say2 I Made This Level#bto see my house say "yes".;
}
function 
onPlayerchats(){
  if (
player.chat == "Yes"){
    
setlevel2=toshi's_level_inside_room5.nw,35.5,30;
  }


once i say Yes It Wont Warp Me i wonder Why

Emera 07-20-2012 12:33 AM

You've got a mix of GS2 and GS1 there. Not a good thing. Also, that's not how you use setLevel2.

PHP Code:

setLevel2("levelname.nw"xy); 


Bleachlover551 07-20-2012 12:40 AM

thanks
 
Quote:

Originally Posted by Emera (Post 1699767)
You've got a mix of GS2 and GS1 there. Not a good thing. Also, that's not how you use setLevel2.

PHP Code:

setLevel2("levelname.nw"xy); 


thanks Lol Was this a simple mastake because ima developer for my friends sever but some crap i dont under stand ^^

devilsknite1 07-20-2012 05:04 AM

PHP Code:

// Made By Toshi! (Developer)
function onCreated() {
  
showcharacter();
  
head "head.png";
  
colors] = "orange";
  
colors] = "white";
  
colors] = "blue";
  
colors] = "red";
  
colors] = "black";
  
attr] = "rainbow_chinahat.png"// or hat = "";? idk
  
nick "Toshi";
  
ap 100;
  
shieldpower 1;
  
dir 2;
}
function 
onPlayerTouchsMe() {
  
say2"I Made This Level" NL "to see my house say 'yes'." );
}
function 
onPlayerChats() {
  if ( 
player.chat == "yes" ) {
    
setlevel2"toshis_level_inside_room5.nw"35.530 );
  }


This way won't work in the GraalEditor, but it is certainly much less deprecated compared to mixing GS1 and GS1 together.

Bleachlover551 07-21-2012 04:31 PM

Quote:

Originally Posted by devilsknite1 (Post 1699780)
PHP Code:

// Made By Toshi! (Developer)
function onCreated() {
  
showcharacter();
  
head "head.png";
  
colors] = "orange";
  
colors] = "white";
  
colors] = "blue";
  
colors] = "red";
  
colors] = "black";
  
attr] = "rainbow_chinahat.png"// or hat = "";? idk
  
nick "Toshi";
  
ap 100;
  
shieldpower 1;
  
dir 2;
}
function 
onPlayerTouchsMe() {
  
say2"I Made This Level" NL "to see my house say 'yes'." );
}
function 
onPlayerChats() {
  if ( 
player.chat == "yes" ) {
    
setlevel2"toshis_level_inside_room5.nw"35.530 );
  }


This way won't work in the GraalEditor, but it is certainly much less deprecated compared to mixing GS1 and GS1 together.


okay thanks ^^ okay Bye ^^

Bleachlover551 07-25-2012 10:21 PM

Quote:

Originally Posted by devilsknite1 (Post 1699780)
PHP Code:

// Made By Toshi! (Developer)
function onCreated() {
  
showcharacter();
  
head "head.png";
  
colors] = "orange";
  
colors] = "white";
  
colors] = "blue";
  
colors] = "red";
  
colors] = "black";
  
attr] = "rainbow_chinahat.png"// or hat = "";? idk
  
nick "Toshi";
  
ap 100;
  
shieldpower 1;
  
dir 2;
}
function 
onPlayerTouchsMe() {
  
say2"I Made This Level" NL "to see my house say 'yes'." );
}
function 
onPlayerChats() {
  if ( 
player.chat == "yes" ) {
    
setlevel2"toshis_level_inside_room5.nw"35.530 );
  }


This way won't work in the GraalEditor, but it is certainly much less deprecated compared to mixing GS1 and GS1 together.

wait so i got a question really quick..so attr [1] = "hat?" and what would a attr [2] and so on mean?

callimuc 07-25-2012 11:28 PM

Quote:

Originally Posted by Bleachlover551 (Post 1700126)
wait so i got a question really quick..so attr [1] = "hat?" and what would a attr [2] and so on mean?

attr[1] is mostly used by servers as the hat since the servers actually all use the default ganis which got that attribute as a hat. you could change it by changing the ganis and editing them.
Anyway I think attr[3] is the item the player is carrying (bushes, rocks, ...) and something around attr[29] is used for global effects I gues

Bleachlover551 07-25-2012 11:52 PM

Thanks
 
Quote:

Originally Posted by callimuc (Post 1700128)
attr[1] is mostly used by servers as the hat since the servers actually all use the default ganis which got that attribute as a hat. you could change it by changing the ganis and editing them.
Anyway I think attr[3] is the item the player is carrying (bushes, rocks, ...) and something around attr[29] is used for global effects I gues

Thanks ^^ So Very Much. Can You Take A Look At Some Of My Other Threads?


All times are GMT +2. The time now is 07:38 AM.

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