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=16149)

JeffTL 11-04-2001 10:19 AM

Script help?
 
I need to get this to work...any suggestions?

PHP Code:

// Acronym Checker by Jeff
// Say something, it gives you the first letter of each word
if (created) {
  
// Initialize the attributes
  
showcharacter;
  
setcharprop #3,head788.png;
  
setcharprop #C0,orange;
  
setcharprop #C1,black;
  
setcharprop #C2,darkpurple;
  
setcharprop #C3,black;
  
setcharprop #C4,darkpurple;
  
setcharprop #2,zero-shield.png;
  
shieldpower 1;
  
dir 2;
  
setcharprop #n,Acronym Checker;
  
setcharprop #8,body11.png;
}
if(
playerchats){
tokenize #c;
for(i=-1;i<20;i++){
setstring string#v(i),#t(#v(i));
tokenize2 abcdefghijklmnopqrstuvwxyz,string#v(i);
setcharprop #c,#t(0);
setcharprop #c,#t(1);
setcharprop #c,#t(2);
setcharprop #c,#t(3);
setcharprop #c,#t(4);
setcharprop #c,#t(5);
setcharprop #c,#t(6);
setcharprop #c,#t(7);
setcharprop #c,#t(8);
setcharprop #c,#t(9);
setcharprop #c,#t(10);
setcharprop #c,#t(11);
setcharprop #c,#t(12);
setcharprop #c,#t(13);
setcharprop #c,#t(14);
setcharprop #c,#t(15);
setcharprop #c,#t(16);
setcharprop #c,#t(17);
setcharprop #c,#t(18);
setcharprop #c,#t(19);
}



fireball_dolphonia 11-08-2001 09:53 AM

Re: Script help?
 
Quote:

Originally posted by JeffTL
I need to get this to work...any suggestions?

PHP Code:

// Acronym Checker by Jeff
// Say something, it gives you the first letter of each word
if (created) {
  
// Initialize the attributes
  
showcharacter;
  
setcharprop #3,head788.png;
  
setcharprop #C0,orange;
  
setcharprop #C1,black;
  
setcharprop #C2,darkpurple;
  
setcharprop #C3,black;
  
setcharprop #C4,darkpurple;
  
setcharprop #2,zero-shield.png;
  
shieldpower 1;
  
dir 2;
  
setcharprop #n,Acronym Checker;
  
setcharprop #8,body11.png;
}
if(
playerchats){
tokenize #c;
for(i=-1;i<20;i++){
setstring string#v(i),#t(#v(i));
tokenize2 abcdefghijklmnopqrstuvwxyz,string#v(i);
setcharprop #c,#t(0);
setcharprop #c,#t(1);
setcharprop #c,#t(2);
setcharprop #c,#t(3);
setcharprop #c,#t(4);
setcharprop #c,#t(5);
setcharprop #c,#t(6);
setcharprop #c,#t(7);
setcharprop #c,#t(8);
setcharprop #c,#t(9);
setcharprop #c,#t(10);
setcharprop #c,#t(11);
setcharprop #c,#t(12);
setcharprop #c,#t(13);
setcharprop #c,#t(14);
setcharprop #c,#t(15);
setcharprop #c,#t(16);
setcharprop #c,#t(17);
setcharprop #c,#t(18);
setcharprop #c,#t(19);
}



ok 1st of all in setcharprop #c,#t(#); it musnt have () on it

TDO2000 11-09-2001 07:51 PM

ouch
use #e !!!

Thak2 11-10-2001 03:15 AM

Quote:

Originally posted by TDO2000
ouch
use #e !!!

yeah, you could test for spaces using #K too I think... maybe not.


All times are GMT +2. The time now is 10:15 AM.

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