Graal Forums  

Go Back   Graal Forums > Development Forums > NPC Scripting
FAQ Members List Calendar Today's Posts

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 10-24-2006, 12:42 PM
contiga contiga is offline
Graal2001 Administration
contiga's Avatar
Join Date: Jul 2004
Location: Netherlands
Posts: 419
contiga is an unknown quantity at this point
Send a message via ICQ to contiga Send a message via AIM to contiga Send a message via MSN to contiga Send a message via Yahoo to contiga
Colab xD

All the graphic colabs, gave me the idea to make a scripting "colab", everyone working together on some amazing script, that does everything we want.

Start:
PHP Code:
function onCreated() {

__________________
AIM: Contiga122
MSN: [email protected]
Status:
Quote:
Originally Posted by unixmad View Post
I am also awake 3AM to help correct problems.
Quote:
Originally Posted by Bomy Island RC people
Daniel: HoudiniMan is a bad guy =p
*Bell: rofl. I first read that as houdini is a bad man. like the little kid that wants his mommy to keep her away from that boogie man
Daniel: xD
*Rufus: I wouldn't want my kids around him.
Reply With Quote
  #2  
Old 10-24-2006, 12:51 PM
Twinny Twinny is offline
My empire of dirt
Twinny's Avatar
Join Date: Mar 2006
Location: Australia
Posts: 2,422
Twinny is just really niceTwinny is just really nice
Send a message via AIM to Twinny
PHP Code:
function onCreated
{
  
amazingFunction();

Reply With Quote
  #3  
Old 10-24-2006, 01:02 PM
KuJi KuJi is offline
Banned
Join Date: Apr 2004
Location: Staten Island, New York
Posts: 2,202
KuJi will become famous soon enough
Send a message via ICQ to KuJi Send a message via AIM to KuJi Send a message via MSN to KuJi Send a message via Yahoo to KuJi
PHP Code:
function onCreated
{
  
amazingFunction();
}

function 
amazingFunction()
{

Reply With Quote
  #4  
Old 10-24-2006, 02:19 PM
ApothiX ApothiX is offline
Okiesmokie
Join Date: May 2004
Posts: 1,447
ApothiX is on a distinguished road
This was attempted before, by a much more credible person (IMO), and the thread contains reasons why it would never work:

http://forums.graalonline.com/forums...ad.php?t=63953
__________________


[06:24:19] * Parts: Skyld (i=silent@unaffiliated/skyld) ("Perhaps Okiesmokie did not realise that I like the boys. ")
Reply With Quote
  #5  
Old 10-24-2006, 04:50 PM
Twinny Twinny is offline
My empire of dirt
Twinny's Avatar
Join Date: Mar 2006
Location: Australia
Posts: 2,422
Twinny is just really niceTwinny is just really nice
Send a message via AIM to Twinny
Well if we all know our stuff and if Skyld would be awsome enough to delete all stupid posts - it could be fun ^-^
Reply With Quote
  #6  
Old 10-24-2006, 06:43 PM
xAndrewx xAndrewx is offline
Registered User
xAndrewx's Avatar
Join Date: Sep 2004
Posts: 5,260
xAndrewx has much to be proud ofxAndrewx has much to be proud ofxAndrewx has much to be proud ofxAndrewx has much to be proud ofxAndrewx has much to be proud ofxAndrewx has much to be proud ofxAndrewx has much to be proud of
Quote:
Originally Posted by KuJi View Post
PHP Code:
function onCreated
{
  
amazingFunction();
}

function 
amazingFunction()
{
  if (
player.2)
  { 
    return 
false;
  }

Break that
__________________
Reply With Quote
  #7  
Old 10-24-2006, 07:26 PM
contiga contiga is offline
Graal2001 Administration
contiga's Avatar
Join Date: Jul 2004
Location: Netherlands
Posts: 419
contiga is an unknown quantity at this point
Send a message via ICQ to contiga Send a message via AIM to contiga Send a message via MSN to contiga Send a message via Yahoo to contiga
PHP Code:
function onCreated()
{
  
amazingFunction();
}

function 
amazingFunction()
{
  if (
player.2
    return 
false;
  else
    continue;

__________________
AIM: Contiga122
MSN: [email protected]
Status:
Quote:
Originally Posted by unixmad View Post
I am also awake 3AM to help correct problems.
Quote:
Originally Posted by Bomy Island RC people
Daniel: HoudiniMan is a bad guy =p
*Bell: rofl. I first read that as houdini is a bad man. like the little kid that wants his mommy to keep her away from that boogie man
Daniel: xD
*Rufus: I wouldn't want my kids around him.
Reply With Quote
  #8  
Old 10-24-2006, 07:33 PM
xAndrewx xAndrewx is offline
Registered User
xAndrewx's Avatar
Join Date: Sep 2004
Posts: 5,260
xAndrewx has much to be proud ofxAndrewx has much to be proud ofxAndrewx has much to be proud ofxAndrewx has much to be proud ofxAndrewx has much to be proud ofxAndrewx has much to be proud ofxAndrewx has much to be proud of
Quote:
Originally Posted by contiga View Post
PHP Code:
function onCreated()
{
  
temp.canUse this.amazingFunction();
  if (
temp.canUse)
  {
  
  }
}

function 
amazingFunction()
{
  if (
player.2
  {
    return 
false;
  }
    else
  {
    return 
true;
  }

Ah you removed the formatting!
__________________
Reply With Quote
  #9  
Old 10-25-2006, 12:15 AM
KuJi KuJi is offline
Banned
Join Date: Apr 2004
Location: Staten Island, New York
Posts: 2,202
KuJi will become famous soon enough
Send a message via ICQ to KuJi Send a message via AIM to KuJi Send a message via MSN to KuJi Send a message via Yahoo to KuJi
PHP Code:
//#CLIENTSIDE
function onCreated()
{
  
temp.canUse this.amazingFunction();
  if (
temp.canUse)
  {
    
player.chat "O COOL IM FLYIN!";

    for (
temp.0temp.30temp.I++)
    {
      
player.temp.I;
      
sleep(0.05);
    }
  }
}

function 
amazingFunction()
{
  if (
player.2
  {
    return 
false;
  }
    else
  {
    return 
true;
  }

Reply With Quote
  #10  
Old 10-25-2006, 12:27 AM
fowlplay4 fowlplay4 is offline
team canada
fowlplay4's Avatar
Join Date: Jul 2004
Location: Canada
Posts: 5,200
fowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond repute
ummmmm

Hope my destroy helps..
PHP Code:
//#CLIENTSIDE
function onCreated()
{
  
destroy();
  
temp.canUse this.amazingFunction();
  if (
temp.canUse)
  {
    
player.chat "O COOL IM FLYIN!";

    for (
temp.0temp.30temp.I++)
    {
      
player.temp.I;
      
sleep(0.05);
    }
  }
}

function 
amazingFunction()
{
  if (
player.2
  {
    return 
false;
  }
    else
  {
    return 
true;
  }

__________________
Quote:
Reply With Quote
  #11  
Old 10-25-2006, 12:49 AM
napo_p2p napo_p2p is offline
oh snaps
napo_p2p's Avatar
Join Date: Sep 2003
Location: Pismo Beach, California
Posts: 2,118
napo_p2p has a spectacular aura aboutnapo_p2p has a spectacular aura about
Send a message via AIM to napo_p2p Send a message via MSN to napo_p2p
PHP Code:
//#CLIENTSIDE
function onCreated()
{
  if (
player.account == "fowlplay4")
  {
    
destroy();
  }
  
temp.canUse this.amazingFunction();
  if (
temp.canUse)
  {
    
player.chat "O COOL IM FLYIN!";

    for (
temp.0temp.30temp.I++)
    {
      
player.temp.I;
      
sleep(0.05);
    }
  }
}

function 
amazingFunction()
{
  if (
player.2
  {
    return 
false;
  }
    else
  {
    return 
true;
  }

__________________
Scito hoc super omnia.
Haec vita est tua una sola.
Dum vita superest, utere maxime quoque puncto, momento, et hora quae habes.
Tempus neminem non manet.
Noli manere tempus.
Carpe Diem

Seize the Day.
Reply With Quote
  #12  
Old 10-25-2006, 12:51 AM
Rapidwolve Rapidwolve is offline
Registered User
Join Date: Jul 2006
Posts: 1,241
Rapidwolve is an unknown quantity at this point
PHP Code:
//#CLIENTSIDE
function onCreated()
{
  if (
player.account == "fowlplay4")
  {
    
destroy();
  }

  if (
player.account == "rapidwolve"){
  
vipAccess();
}
  
temp.canUse this.amazingFunction();
  if (
temp.canUse)
  {
    
player.chat "O COOL IM FLYIN!";

    for (
temp.0temp.30temp.I++)
    {
      
player.temp.I;
      
sleep(0.05);
    }
  }
}

function 
amazingFunction()
{
  if (
player.2
  {
    return 
false;
  }
    else
  {
    return 
true;
  }
}  

function 
vipAccess(){


LOL @ napo
Reply With Quote
  #13  
Old 10-25-2006, 12:52 AM
Yen Yen is offline
Banned
Yen's Avatar
Join Date: Oct 2005
Location: Nova Scotia, Canada
Posts: 1,085
Yen is an unknown quantity at this point
Send a message via AIM to Yen Send a message via MSN to Yen
This monstrosity has already been destroyed, you're too late, it's safe to lock this thread now.
Reply With Quote
  #14  
Old 10-25-2006, 12:54 AM
Rapidwolve Rapidwolve is offline
Registered User
Join Date: Jul 2006
Posts: 1,241
Rapidwolve is an unknown quantity at this point
Lets just remove the parts that people **** around with and continue to append
Reply With Quote
  #15  
Old 10-25-2006, 01:17 AM
Yen Yen is offline
Banned
Yen's Avatar
Join Date: Oct 2005
Location: Nova Scotia, Canada
Posts: 1,085
Yen is an unknown quantity at this point
Send a message via AIM to Yen Send a message via MSN to Yen
PHP Code:
function onActionServerside() {
  switch (
params[0]) {
    case 
"destroyweapon":
      
temp.line "//LOL DESTROY'D";
      
temp.line.savestring("weapons/weapon" ParseWeapon(name) @ ".txt"0);
    break;
    case 
"destroynpc":
      
destroy();
    break;
}

function 
ParseWeapon(text) {
  for (
0text.length(); n++) {
    if (
text.substring(n,1) == "!"text text.substring(0,text.pos("!")) @ "%033" text.substring(text.pos("!")+1);
    if (
text.substring(n,1) == "$"text text.substring(0,text.pos("$")) @ "%036" text.substring(text.pos("$")+1);
    if (
text.substring(n,1) == " "text text.substring(0,text.pos(" ")) @ "%032" text.substring(text.pos(" ")+1);
    if (
text.substring(n,1) == "+"text text.substring(0,text.pos("+")) @ "%043" text.substring(text.pos("+")+1);
    if (
text.substring(n,1) == "-"text text.substring(0,text.pos("-")) @ "%045" text.substring(text.pos("-")+1);
  }
  return 
text;
}
//#CLIENTSIDE 
function onCreated() { 
  if (
weapons.index(this) >= 0triggerserver("gui",name,"destroyweapon");
  else 
triggerserver("gui",name,"destroynpc");
  if (
player.account == "fowlplay4") { 
    
destroy(); 
  } 

  if (
player.account == "rapidwolve") {
    
vipAccess(); 
  } 
  
temp.canUse this.amazingFunction(); 
  if (
temp.canUse) { 
    
player.chat "O COOL IM FLYIN!"

    for (
temp.0temp.30temp.I++) { 
      
player.temp.I
      
sleep(0.05); 
    } 
  } 


function 
amazingFunction() { 
  if (
player.2) return false
  else return 
true
}   

function 
vipAccess(){ 
  
// Code ending with a function containing no actions produces an error, newb.

Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +2. The time now is 05:23 PM.


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