Go Back   RunUO - Ultima Online Emulation > RunUO > RunUO Post Archive

RunUO Post Archive The Archvie

Reply
 
Thread Tools Display Modes
Old 07-22-2004, 07:54 PM   #1 (permalink)
 
Join Date: Feb 2003
Posts: 412
Default Assasination Contract System*Updated 7/23-6:45CST*

*Updated*
to use say "i wish to form a contract" it will being up a targeting cursor, target the person your making the contract to will bring up a gump where you input contract name, reqard and days to complete and click ok, it will drop the contract into the targeted players bag, to view the written contract doubleclick it once doubleclicked there is a button that says verify corpse, once you killt he target you use that adn target the corpse, if it is the correct target the button changes to claim reward click that and target the personw ho assigned the contract to you adn the reward will be dropped into your person in the form of a check, if the contract expires before you get all of that done the reward is once again readded to the employers bankbox adn the button ont he contract is invalidated, as also the contract is non transferable, if another player attempts to use the contract the buttons are again invalidated i think theres more to it, i cant remember for sure, try it tell me waht you think, and any sug. to make it better

Updates: July 24
-added an instant payoff version for requests

Updates:
-there is now an accept contract gump
-the claim reward bug is fixed
-if a player is offline when claim reward is clicked and time is less tha 1 day left, it resets the time to 1 day so if player stays offline a few days, the contract wont expire while he is offline, no time change if there is more than 1 day left
-fixed a small spelling error
Attached Files
File Type: cs Assasinationcontract.cs (20.9 KB, 497 views)
File Type: cs Assasinationcontractinstantpayoff.cs (22.5 KB, 485 views)
Ceph is offline   Reply With Quote
Old 07-22-2004, 08:21 PM   #2 (permalink)
Forum Expert
 
Join Date: Jun 2003
Posts: 414
Send a message via ICQ to will_man
Default

a nice thing to do would be so it automatically knows if your contract has been completed when you kill the player, and you collect your reward instantly instead of having to find the person who issued the contract, the first bit can be done by using EventSink PlayersDeath ( or something like that, look in ReportMurder.cs ).

Other than that, it looks i loaded it up and it looks nice!
will_man is offline   Reply With Quote
Old 07-22-2004, 08:35 PM   #3 (permalink)
 
Join Date: Feb 2003
Posts: 412
Default

i had accually thought of doing it like that but i chose to do it this way, as a personal pref.
Ceph is offline   Reply With Quote
Old 07-22-2004, 08:37 PM   #4 (permalink)
Forum Expert
 
Join Date: Jun 2003
Posts: 414
Send a message via ICQ to will_man
Default

fair enough, it is nice, jsut the other way would be easier on the players
will_man is offline   Reply With Quote
Old 07-22-2004, 10:55 PM   #5 (permalink)
 
Join Date: Feb 2003
Posts: 412
Default

i agree also easier to code all you need to do is remove a bit and put the code for the second button on the firstbut i felt this way was a bit more realistic, kill target, go backt o contract, telll hima nd get your rewardfrom him
Ceph is offline   Reply With Quote
Old 07-23-2004, 04:25 AM   #6 (permalink)
Forum Expert
 
Pyro-Tech's Avatar
 
Join Date: Oct 2003
Location: Carbondale, IL
Age: 24
Posts: 1,805
Send a message via MSN to Pyro-Tech
Default

i can see both sides as how to handle it..although, i have a problem with having to find the player who gave the contract.....if you go and kill the person, and they just decide to stay offline for a while, they get what they want....but you get stuck with the murder count, and you don't get the reward, and you have a pissed off player

so it might be better to do it the other way

Or mabey even make a vendor that sells these contracts....i dunno enough as how to do it, but the idea might be where you make the contract, you give it to the vendor, and he sells the contracts to people who want to take them...then you bring the contracts back to that vendor...almost like he was a broker of sorts

either way....good script
__________________

Pyro-Tech is offline   Reply With Quote
Old 07-23-2004, 04:47 AM   #7 (permalink)
 
hudel's Avatar
 
Join Date: Oct 2003
Location: Germany
Age: 38
Posts: 508
Send a message via ICQ to hudel
Default

nice idea...
hudel is offline   Reply With Quote
Old 07-23-2004, 10:23 AM   #8 (permalink)
 
Join Date: Aug 2003
Posts: 344
Default

yeah i like this idea. very cool. i agree witht he others, i would prefer if players were paid instantly for completing the contract.
goodmojo is offline   Reply With Quote
Old 07-23-2004, 12:31 PM   #9 (permalink)
Forum Expert
 
flowerbudd's Avatar
 
Join Date: Jul 2003
Location: Missouri
Age: 31
Posts: 701
Send a message via ICQ to flowerbudd Send a message via AIM to flowerbudd Send a message via MSN to flowerbudd Send a message via Yahoo to flowerbudd
Default

This is not working... after the player kills, and then tries to verify, it says that the contract wasn't made by the person who made it, and if you [props it it says that that person is in fact the contractor but it won't let you finish up
__________________
Med-Surg Nurse, Full time Pittsburg State Univ Sophmore, and FT Mother to 5 kids
flowerbudd is offline   Reply With Quote
Old 07-23-2004, 12:44 PM   #10 (permalink)
 
Join Date: Jun 2004
Age: 23
Posts: 30
Default

Yea I got the same problem.
RayneXV is offline   Reply With Quote
Old 07-23-2004, 01:59 PM   #11 (permalink)
 
Join Date: Aug 2003
Posts: 271
Send a message via AIM to Zidane4056
Default

Problem: Players can flood afk players' packs and cause them to be weighed down when they get back on. Sometimes the newly arriving player won't notice the items in their pack and will drop stuff on the ground as a result.

With a shard with 30 people on usually I think this spells more work for the staff as it is.

Perhaps you should send a gump to the player who is to receive the deed (you might even be able to use the standard secure trade window) and if they accept, the deed is placed in their pack. If they decline or time out, nothing happens.

^Implement something like that or that will prevent flooding and I'd be happy to give it a shot. Sounds pretty cool really.
Zidane4056 is offline   Reply With Quote
Old 07-23-2004, 04:19 PM   #12 (permalink)
 
Join Date: Aug 2003
Location: Atl, Ga
Age: 36
Posts: 13
Send a message via ICQ to madmunki Send a message via AIM to madmunki Send a message via MSN to madmunki Send a message via Yahoo to madmunki
Default

Quote:
Originally Posted by Ceph
i agree also easier to code all you need to do is remove a bit and put the code for the second button on the firstbut i felt this way was a bit more realistic, kill target, go backt o contract, telll hima nd get your rewardfrom him
The problem with this is you have to FIND the employer, which may not log on anytime soon so you have to wait? Because employers dont stay logged on, when the client loges off, makes this kinda hard. Perhaps a bounty system where you dont have to die to add someones head to the list, lets say:

PC: "I wish to place a bounty"
Server: Who's head do you wish to place the bounty on: (returns target cursor)
PC: Clicks the PC (or NPC)
Server: Amount?
PC: 5000
Server: Do you wish to place a bounty on (PC's Name) head for the sum of 5000?
PC: Yes
Server: A bounty has been placed. (gold subtracted from PCs bank)

Various NPCs around the world will cash out the bounty if the head is brought back and dropped on them.
madmunki is offline   Reply With Quote
Old 07-23-2004, 06:23 PM   #13 (permalink)
 
Join Date: Feb 2003
Posts: 412
Default

well, i just finished adding the gump becase its a good point, and i was about to set it so if the player is offline when claim reward is clicked timeleft if less than 24 hrs resets the time to 24 hrs so the contract will not expire if the player is offline,
(the reason i dont want to make it instant, is for those devious type players who like to lie, cheat, steal, then hide, then perhapse those players will have an assasination contract issued in their name

but i just realized about the bug, i wasnt aware the mobile serial number changed at login/out im going to figure out a work around i tihnk i know how to go about it using the account parameters, i jsut need to figure out how they work, instead of using just the mobile id,

as for the bounty system i already wrot e adn posted that awile back (i tihnk somone took it in and worked the bugs out or jsut redid it a very similar way) im making them 2 specific systems mainly fort he reason an assasination contract woudl want to be kept private and behind the law, though if i get bored i may set a flag to add a "shady looking guy" npc that can work as an assasin contractor
Ceph is offline   Reply With Quote
Old 07-23-2004, 06:35 PM   #14 (permalink)
 
Join Date: Feb 2003
Posts: 412
Default

im sorry!, the problem was my bad, i overlooked it because i always used myself for debugging! bugs fixed, new version will follow shortly if you wantt o know the bug was when checking theemployer, it did a check agaisnt the targeter, instead of targetee
Ceph is offline   Reply With Quote
Old 07-23-2004, 08:35 PM   #15 (permalink)
 
Join Date: Feb 2003
Posts: 412
Default

*Updated*

Updates:
-there is now an accept contract gump
-the claim reward bug is fixed
-if a player is offline when claim reward is clicked and time is less tha 1 day left, it resets the time to 1 day so if player stays offline a few days, the contract wont expire while he is offline, no time change if there is more than 1 day left
-fixed a small spelling error
Ceph is offline   Reply With Quote
Old 07-24-2004, 06:34 PM   #16 (permalink)
 
Join Date: Feb 2003
Posts: 412
Default

*updated*

added second version eith instant payoff upon comp. for multiple requests
Ceph is offline   Reply With Quote
Old 07-26-2004, 11:31 PM   #17 (permalink)
Forum Expert
 
Join Date: Jan 2003
Posts: 564
Default

looks nice
__________________
UO Central: O Mistério do Oculto
(Free Shard Brasileiro)

brodock is offline   Reply With Quote
Old 09-26-2004, 04:05 AM   #18 (permalink)
 
Join Date: Jan 2004
Location: Huntsville, Alabama
Age: 32
Posts: 195
Send a message via ICQ to Kesia Send a message via AIM to Kesia Send a message via MSN to Kesia Send a message via Yahoo to Kesia
Default

Well, when I put it in, and try to start the server it says my server/items already contains 'AContract' though I can't find anything with that name. Do I take something out, or change something?
Kesia is offline   Reply With Quote
Old 08-14-2005, 01:43 AM   #19 (permalink)
 
Join Date: Jul 2005
Posts: 9
Default

i have put scripts in customs\assasination forder

here is the error :


- Error: Scripts\customs\assasinaiton\Assasinationcontracti nstantpayoff.cs:CS0101: (line 12, column 15) The name space 'Server.Items' already contains a definiton for 'Acontract'
- Error: Scripts\customs\assasinaiton\Assasinationcontracti nstantpayoff.cs:CS0101: (line 715, column 15) The name space 'Server.Items' already contains a definiton for 'ConfirmContractGump'

how can i fix this?

thanx
zozoz77 is offline   Reply With Quote
Old 08-14-2005, 01:48 AM   #20 (permalink)
 
Join Date: Feb 2003
Posts: 412
Default

Quote:
Originally Posted by zozoz77
i have put scripts in customs\assasination forder

here is the error :


- Error: Scripts\customs\assasinaiton\Assasinationcontracti nstantpayoff.cs:CS0101: (line 12, column 15) The name space 'Server.Items' already contains a definiton for 'Acontract'
- Error: Scripts\customs\assasinaiton\Assasinationcontracti nstantpayoff.cs:CS0101: (line 715, column 15) The name space 'Server.Items' already contains a definiton for 'ConfirmContractGump'

how can i fix this?

thanx
your using another custom script with the same names, change the namespace (and associated names) in either that script, or the other one
Ceph is offline   Reply With Quote
Old 08-14-2005, 01:54 AM   #21 (permalink)
Master of the Internet
 
bzk90's Avatar
 
Join Date: Jun 2003
Location: Nevada
Age: 18
Posts: 6,630
Send a message via AIM to bzk90 Send a message via MSN to bzk90 Send a message via Yahoo to bzk90
Default

for the love of runuo, let the necroing stop
bzk90 is offline   Reply With Quote
Old 09-02-2005, 01:32 PM   #22 (permalink)
 
Join Date: Jul 2005
Posts: 9
Default

Quote:
Originally Posted by Ceph
your using another custom script with the same names, change the namespace (and associated names) in either that script, or the other one
thanks a lot, i have changed the names and its working now
zozoz77 is offline   Reply With Quote
Old 01-22-2006, 11:34 PM   #23 (permalink)
Forum Newbie
 
Join Date: Aug 2005
Age: 37
Posts: 74
Default instant reward

is anyone else having problems with the instant reward. u click the corpse and then it gives you option to claim reward like regular contract but even if you find the peson and click on them u still cant get your reward. is the instant reward one still bugged?
frank is offline   Reply With Quote
Old 01-23-2006, 12:31 AM   #24 (permalink)
RunUO Forum Moderator
 
daat99's Avatar
 
Join Date: Dec 2004
Location: Israel
Age: 27
Posts: 8,163
Send a message via ICQ to daat99 Send a message via AIM to daat99
Default

Quote:
Originally Posted by frank
is anyone else having problems with the instant reward. u click the corpse and then it gives you option to claim reward like regular contract but even if you find the peson and click on them u still cant get your reward. is the instant reward one still bugged?
The scripts in the archive aren't supported for a while now.
Look for it in the script release forum if you want something that is supported.
__________________
I always try to help
Sometimes, I don't know how....

My Web Page
Forum Rules
-------------------------------------------------------------
Extensive OWLTR System | Token System | World Teleporters
-------------------------------------------------------------
daat99 is offline   Reply With Quote
Reply

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

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
Trackbacks are Off
Pingbacks are Off
Refbacks are Off



Powered by vBulletin® Version 3.7.0
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.2.0 RC5