Codeserver Forums: [Contribution] Quest Fix - Codeserver Forums

Jump to content

Toggle shoutbox Shoutbox

Philywiskaz (Senior MOD/GM)  : (22 August 2010 - 01:42 PM) Boo! :D Hey all! Sorry I've been gone a long time, been busy with study and other life stuffs :( Just stopped by to check up on the site. Neos... You have done an amazing job in the time I've been gone, keep it up, but make sure you have some time off every now and then.
Froid  : (19 August 2010 - 02:15 AM) I'm still here DeVIL :)
Shandy  : (26 July 2010 - 11:30 PM) :) hi inma new member im looking forward to playing once i find the realmlist!
DeViLbOaRdZ  : (25 July 2010 - 09:41 PM) I will be playing in the server tomorrow ... hopefully I will see some guys again
DeViLbOaRdZ  : (07 July 2010 - 06:45 PM) Ahhhh you guys still here? How is code going? .. beein busy lately with school .. hopefully more time to get involved
Arvit  : (23 June 2010 - 06:19 PM) Best uptime I have ever seen :D
Froid  : (22 June 2010 - 06:34 PM) holy crap: uptime - 2525:03:10
Froid  : (05 June 2010 - 03:57 AM) Well nice to see you here finally neos :P Tell me when you get some more free time :)
Berserk  : (03 June 2010 - 03:08 PM) arararararar
Neos(Lead Devloper/Founder)  : (31 May 2010 - 11:26 PM) Forums have been fixed. Some random table in the database corrupted and needed a repair. No harm done to any of the data though. And yes Froid, it has been quiet, too quiet... But at this moment I don't have a lot any free time :( , hence the reason there there haven't been any updates from my side.
Froid  : (20 May 2010 - 07:49 PM) Wow this place is really dead...send me a PM or Email if you want me to work on the core for you. I really want the server to come back to life :(
Froid  : (05 May 2010 - 12:22 PM) If you need a little help with the core I can help you out ;)
Mantheren(Developer)  : (05 May 2010 - 10:03 AM) Heheh, I've been pretty busy myself lately... No time to play or program... :(
Froid  : (03 May 2010 - 03:31 AM) Neos we miss you :(
Arvit  : (30 April 2010 - 01:09 PM) I am now lvl 20 and hadn`t found any bugs
Arvit  : (30 April 2010 - 01:08 PM) If you want a nice blizzlike server go to ***.******.***
Froid  : (23 April 2010 - 10:06 PM) WTB: Community
Froid  : (19 April 2010 - 10:13 PM) So whose exited for 4/20 :D
Froid  : (13 April 2010 - 09:43 PM) As far as I know the people making the movie said they didn't have enough funding, so they stopped the production.
Mauri  : (12 April 2010 - 01:43 PM) and again, greetings to all codeserver players, GMs, Admins, and Developer :)
Resize Shouts Area

Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

[Contribution] Quest Fix part 2 of a plague upon thee

#1 User is offline   Froid 

  • Too low to rank
  • Pip
  • Group: Members
  • Posts: 18
  • Joined: 07-January 10
  • Gender:Male
  • Character: Damien

Posted 27 February 2010, 01:44

I was trying to do a quest in WPL but the game object wasn't scripted, so I made a script that a dev here can fill in with the correct functions to make it work
using System;
using System.Collections.Generic;
using System.Text;

using Server.Interfaces;

using Extension;
using Extension.Interfaces;
using Extension.Implementations;

namespace Scripts.Gameobjects
{
    public class NorthridgeCrate : IGameobjectScript
    {
        public IObjectCompare<IScriptGameobject> Comparer
        {
            get { return new CompareCollection.IdCompare<IScriptGameobject>(177490); }
        }

        public void UseGameobject(IScriptGameobject target, IScriptPlayer player)
        {
            if(player.GetQuestStatus(5902) == ScriptQuestStatus.STATUS_ACTIVE)
                player.CreateGossipMenu("something that sends the message 'Place Termite Barrel on the crate.'");
				if(player.something_that_means_he_clicked_the_gossip_option)
				{
					player.delete_item(15044);
					player.complete_quest(5902);
				}
        }
    }
}



PS: I've been learning the .NET library and C# for over a year now, if you are looking for a bug fixer/scripter I'd be glad to help :)
Damien - Level 70 Undead Warlock <Legacy of the HORDE>
StonedMon - Alt Troll Shaman
GorillaZ - Alt Dwarf Warrior
0

#2 User is offline   Neos 

  • Server Owner
  • Icon
  • Group: Root Admin(Lead Devloper/Founder)
  • Posts: 676
  • Joined: 10-November 05
  • Location:Bolsward
  • Character: Neos

Posted 05 March 2010, 17:04

looks good, and we are certainly looking for some like that! Contact me and I can send you an SDK kit for the server that includes the basic scripting dlls to reference inside visualstudio.
For the latest updates on the server core visit: http://www.codeforum...isionLog/Latest
0

#3 User is offline   Neos 

  • Server Owner
  • Icon
  • Group: Root Admin(Lead Devloper/Founder)
  • Posts: 676
  • Joined: 10-November 05
  • Location:Bolsward
  • Character: Neos

Posted 05 March 2010, 17:12

using System;
using System.Collections.Generic;
using System.Text;

using Server.Interfaces;

using Extension;
using Extension.Interfaces;
using Extension.Implementations;

namespace Scripts.Gameobjects
{
    public class NorthridgeCrate : IGameobjectScript, IGossip
    {
        public IObjectCompare<IScriptGameobject> Comparer
        {
            get { return new CompareCollection.IdCompare<IScriptGameobject>(177490); }
        }

        public void UseGameobject(IScriptGameobject target, IScriptPlayer player)
        {
            if (player.GetQuestStatus(5902) == ScriptQuestStatus.STATUS_ACCEPTED)
            {
                player.GossipAdd("Place Termite Barrel on the crate.", GossipIcons.ICON_DEFAULT, 1);
                player.GossipFlush(target, 0 /* text ID */);
            }
        }

        public void GossipHello(IScriptPlayer player, IScriptCreature creature) { }

        public void GossipSelect(IScriptPlayer player, IScriptCreature creature, int action)
        {
            if (action == 1)
            {
                player.RemoveItem(15044, 1 /* amount */);
                player.CompleteQuest(5902);
            }
        }
    }
}


But the problem is the core does not support scripting of gameobject gossips yet. But I'll add support for that, anyway the code above is more correct. But not yet yet working due to the problem I outlined above.
For the latest updates on the server core visit: http://www.codeforum...isionLog/Latest
0

Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users