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-26-2010, 09:18 AM
Trakan Trakan is offline
It's all about cats!
Trakan's Avatar
Join Date: Sep 2010
Location: France
Posts: 64
Trakan is an unknown quantity at this point
CastleWars Flag - Help

Hey all .

I need a CastleWars Flag Script (like classiciphone) for my server .


Example if(playerswordhit) life of the flag -1.



Thanks for your future help


-Trakan
Reply With Quote
  #2  
Old 10-26-2010, 02:48 PM
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
This is the bare-bones of what it would start out like, also this isn't a place to request scripts but to learn how to do it yourself.

PHP Code:
function onCreated() {
  
this.life 100;
  
this.chat this.life;
}

// Due to forums filter s hit will show up as **** so you have to type it in yourself.
function onWa****() {
  
this.life--;
  
this.chat this.life;

__________________
Quote:
Reply With Quote
  #3  
Old 10-26-2010, 11:21 PM
Gambet Gambet is offline
Registered User
Join Date: Oct 2003
Posts: 2,712
Gambet is on a distinguished road
Quote:
Originally Posted by fowlplay4 View Post
stuff

Use some OOP; create a flag object and work from there.
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 07:01 PM.


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