DragonPrime - LoGD Resource Community
Welcome Guest
  • Good morning, Guest.
    Please log in, or register.
  • July 19, 2019, 03:15:48 AM
Home Forums News Downloads Login Register Advanced Search
* *
DragonPrime Menu
Login
 
 
Resource Pages
Search

  Show Posts
Pages: [1] 2 3 ... 245
1  Game Administration, Installation and Configuration / Game Administration Chat / Re: multi dragons on: July 20, 2007, 11:34:45 PM
Code:
global $badguy;
if (!isset($badguy['spawned'])) {
  $badguy['spawned'] = true;
  $spawn = $badguy;
  $spawn['istarget'] = false;
for ($i=$session['user']['dragonkills']; $i>=20; $i-=20)
  battle_spawn($spawn);
output("The Dragon CLONES ITSELF?!?!?");
}
2  Village Square / General Discussion Area / Re: Reset all stats of all players on: July 20, 2007, 11:32:46 PM
and it does it only for one player, right?
3  Important Stuff - You need to read this! / DragonPrime Announcements / Re: DragonPrime Survival Guide (Or how to get the most out of this site) on: July 20, 2007, 11:38:57 AM
* XChrisX positions a trampoline under the thread so it's (hopefully) re-bumped automagically!
4  Game Administration, Installation and Configuration / Game Administration Chat / Re: Ramius's Altar on: July 20, 2007, 11:37:56 AM
And the solution is always the same! Wink Even if it's for a different module...
5  Game Administration, Installation and Configuration / Newbie's Corner (The Isle of Wen) / Re: How To Start on: July 20, 2007, 11:28:27 AM
They are both fairly equal. Preferences tend to go to the version you used first, which in return may lead to the assumption that thay are both fairly equal. (Didn't I just say that? Tongue )
6  Game Administration, Installation and Configuration / Game Administration Chat / Re: multi dragons on: July 20, 2007, 09:20:17 AM
hook: buffdragon
add an a.i. script to the creature.

Code:
global $badguy;
if (!isset($badguy['spawned'])) {
  $badguy['spawned'] = true;
  battle_spawn($badguy);
}

Should create a second dragon after the first round. Some text... Might do it Wink
7  Modules, Themes and other customizations for your game / AI Scripts (v 1.1.1 only) / Re: [A.I. Script] Forest Thief on: July 20, 2007, 03:22:56 AM
This was a RTFM-Post, right? Grin
8  Modules, Themes and other customizations for your game / AI Scripts (v 1.1.1 only) / Re: [A.I. Script] Forest Thief on: July 20, 2007, 01:58:05 AM
uhm. ... So the thief will have a chance to steal every 25 rounds, yes?
9  Game Administration, Installation and Configuration / Game Administration Chat / Re: core edit question on: July 20, 2007, 12:41:42 AM
You might want to contact Talisman, Nightborn, kickme or me with the changes. Maybe they are worth to be considered becoming part of the core?
10  Modules, Themes and other customizations for your game / AI Scripts (v 1.1.1 only) / Re: [A.I. Script] Forest Thief on: July 20, 2007, 12:32:17 AM
Ok, so it will only steal once, which leaves the last three lines redundant...
11  Modules, Themes and other customizations for your game / AI Scripts (v 1.1.1 only) / Re: [A.I. Script] Forest Thief on: July 19, 2007, 09:31:22 PM
Hmm... I think this will only work in the first round, right?
Because after the first round $badguy['spellpoints'] will be set, isset() will return true which will be turned into false and then it'll skip the next lines...
12  Modules, Themes and other customizations for your game / AI Scripts (v 1.1.1 only) / Re: [A.I. Script] - 'experience drainer' on: July 19, 2007, 09:23:44 PM
just an FYI: You don't have to name the counters "spellpoints". You cann call it "counter", "thricesslices" or something totally different - as long as it is not used in a standard badguy array Smiley

(BTW: Nice one... I think I'll use this. Grin )
13  Coding Support / Coding Support Desk / Re: Adding unclickable links with addnav() on: July 19, 2007, 08:39:41 AM
Thanks, Tristan, yeah, that's what I wanted. Or rather I wondered if there was a better way to achieve it since it feels like it's cheating Wink
That's the only way to do it.
Have a look at pageparts.php where the function is defined. In the comments it's specifically mentioned Wink
14  Village Square / General Discussion Area / Re: CCL Question on: July 19, 2007, 08:09:20 AM
Quote
I would have perfectly understood if nobody had tried to explain it to me.

Grin
15  Coding Support / Coding Support Desk / Re: String manipulation - adding colors on: July 19, 2007, 08:06:00 AM
Code:
$newtext = "%";
for ($x=0;$x<strlen($oldtext);$x++){
$newtext .= ($x%2?"`@":"\$") . substr($oldtext,$x,1);
}
Forgot some brackets. Wink
Pages: [1] 2 3 ... 245

*
DragonPrime Notices
Version 1.1.2 is the current supported version and is available for download.

Support Us
No funds raised yet this year
Your help is greatly appreciated!
Recent Topics
DragonPrime LoGD
Who's Online
93 Guests, 0 Users
Home Forums News Downloads Login Register Advanced Search