Graal Forums

Graal Forums (https://forums.graalonline.com/forums/index.php)
-   NPC Scripting (https://forums.graalonline.com/forums/forumdisplay.php?f=8)
-   -   CastleWars Flag - Help (https://forums.graalonline.com/forums/showthread.php?t=134260932)

Trakan 10-26-2010 09:18 AM

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
!pissed!

fowlplay4 10-26-2010 02:48 PM

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;



Gambet 10-26-2010 11:21 PM

Quote:

Originally Posted by fowlplay4 (Post 1608618)
stuff


Use some OOP; create a flag object and work from there.


All times are GMT +2. The time now is 09:22 AM.

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