DragonPrime - LoGD Resource Community
Welcome Guest
  • Good morning, Guest.
    Please log in, or register.
  • July 16, 2018, 07:22:08 AM
Home Forums News Downloads Login Register Advanced Search
* * *
DragonPrime Menu
Login
 
 
Resource Pages
Search

Pages: [1]   Go Down
  Print  
Author Topic: The Goat & The Goat 2  (Read 3426 times)
0 Members and 1 Guest are viewing this topic.
robert
Old Dog
Moderator
Mod God
*****
Offline Offline

Posts: 1047


LoGD Buff!


View Profile WWW
« on: March 23, 2004, 12:01:25 PM »

The Goat

Fun and Humorous Special Event that gives a Goat to player with no mount,
the Goat does NOTHING, he wonders off to eat while you fight.
Player can sell the annoying Goat at the Stables for a small amount of gold.
Players having a mount will be redirected to another special event

You need to create a mount with your Mount Editor
full instructions included in the file

The Goat 2
Contains the script adustment seen below in the following posts; to allow the Goat to follow the player right away rather than wait for new day - thanks guys!

The Goat: (follows player on the next new day)
http://dragonprime.net/users/robert/goat097.zip

The Goat 2: (follows player right away)
http://dragonprime.net/users/robert/goat2_097.zip

edit note: links updated
« Last Edit: January 31, 2005, 02:06:45 PM by robert » Logged

bwatford
Guest
« Reply #1 on: March 23, 2004, 12:31:07 PM »

Works great except for 1 thing. When they get the goat it doesn't show up until the next day. It needs to have rounds set somewhere in the script since it is with them from that moment on. How can we do this?
Logged
lonnyl
Guest
« Reply #2 on: March 23, 2004, 12:41:32 PM »

add this after setting the mount

$session['bufflist']['mount']=unserialize($mount['mountbuff']);

I think..... going to try it now.
Logged
Drenac
Guest
« Reply #3 on: March 23, 2004, 12:43:22 PM »

Add...

// Set the mount buff
$session['bufflist']['mount'] = unserialize( $mount['mountbuff'] );

After...

$session[user][hashorse] = 44;

Edit: Dang...Lonnyl beat me to it.  =)
« Last Edit: March 23, 2004, 12:44:17 PM by Drenac » Logged
bwatford
Guest
« Reply #4 on: March 23, 2004, 12:54:22 PM »

It says rounds left in buffs now but still no goat
Logged
robert
Old Dog
Moderator
Mod God
*****
Offline Offline

Posts: 1047


LoGD Buff!


View Profile WWW
« Reply #5 on: March 23, 2004, 01:01:23 PM »

I always looked at the FUN part,
the player discovers the Goat after a newday.
. . . makes them wonder.  Roll Eyes
Logged

lonnyl
Guest
« Reply #6 on: March 23, 2004, 01:19:33 PM »

actually it think it should be.....

$session['bufflist']['mount']=unserialize($playermount['mountbuff']);

but that's not working either....
tryed banging my head against a wall..... still doesn't work.  Embarrassed
Logged
Drenac
Guest
« Reply #7 on: March 23, 2004, 01:32:58 PM »

Lonnyl,

Actually, you're mostly correct...the reason it wasnt working before is because Robert's script only stores WHICH mount the player has, but never actually loads it.  It gets loaded again the next time common.php is ran, but its too late to unserialize....

I think the correct code (haven't tested) would be to do this....

goat.php
----------------
Add...
$playermount = getmount($session['user']['hashorse']);
$session['bufflist']['mount']=unserialize($playermount['mountbuff']);

After....
$session[user][hashorse] = 44;

This loads the horse from the database and THEN unserializes it....should work better...but let me know.

Cheers! ~Drenac  Cool
Logged
bwatford
Guest
« Reply #8 on: March 23, 2004, 01:36:43 PM »

Works like a charm
Logged
lonnyl
Guest
« Reply #9 on: March 25, 2004, 06:03:52 PM »

change this mod to a donkey also and made the donkey irritating... and distracting..... and it actually kind of unbuffs you....  
Logged
robert
Old Dog
Moderator
Mod God
*****
Offline Offline

Posts: 1047


LoGD Buff!


View Profile WWW
« Reply #10 on: March 26, 2004, 04:23:43 AM »

Goat 2 now available using the changes you suggested - thanks everyone!

Contains the scipt add-on that allows the goat to follow the player right away rather than wait for new day.

Goat 2:
http://dragonprime.cawsquad.net/users/robert/goat2_097.zip
« Last Edit: April 29, 2004, 04:48:33 AM by robert » Logged

Pages: [1]   Go Up
  Print  
 
Jump to:  


*
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
27 Guests, 1 User
7h364m3
Home Forums News Downloads Login Register Advanced Search