PDA

View Full Version : new events


xAndrewx
10-14-2007, 08:03 PM
i want to make some new events for gk !!!! do you have any cool suggestions?

Tigairius
10-14-2007, 08:07 PM
I don't have many suggestions, but I am also willing to make events for GK.

Mousymee
10-14-2007, 08:28 PM
Some kind of castle wars would be pretty awesome.

xAndrewx
10-14-2007, 08:43 PM
Here's a betting spar.

Change the "this.boxName" to 1 or 2 [Only two per level, could add more on slight modifications]. Add two of these in the level.

function onCreated() {
this.setShape(1, 32, 32);
this.boxName = 1;
}

//Function called to pick up an item
function onActionFound(id) {
if (level.("objectOwner" @ this.boxName) != null) {
return false;
}
for (temp.i: findnearestnpcs(this.x - 2, this.y - 2, 4, 4) {
if (temp.i.itemid == temp.id) {

level.("objectOwner" @ this.boxName) = player;
level.("objectItem1" @ this.boxName) = {temp.i.mudid, temp.i.mudquantity};
temp.i.destroy();
return;
}
}
}


Here's the main control, on the GK system this will probably need ajusting more than anything


function onCreated() {
this.setShape(1, 32, 32);
this.boxModes = {1, 2};
level.deathAction = {this.x, this.y};
//Maybe there's a public function for when a person dies in a level!
//If not, I could add a timeout, just better to send an action once someone dies
}

//If there is, here's how it'd work
function onActionDeathAction(accountName) {
for (temp.i: this.boxModes) {
temp.ownerAccounts.add(level.("objectOwner" @ temp.i).account);
temp.itemDetails.add(level.("objectItem1" @ temp.i));
}
if (temp.ownerAccounts == null) {
return false;
}
if (temp.accountName in temp.ownerAccounts) {
temp.winner = temp.ownerAccounts.remove(temp.accountName);
temp.winner.chat = "You've won the bet by slain thy opponent!";
for (temp.i: temp.itemDetails) {
//addinvobject(int, int) - I assue id/quantity
temp.winner.addinvobject(temp.i[0], temp.i[1]);
}
level.objectOwner1 = null;
level.objectOwner2 = null;
}
}

Sam
10-15-2007, 11:48 AM
i want to make some new events for gk !!!! do you have any cool suggestions?

I am still thinking about an auction house. You should be able to offer diamonds, plats, nails, stones and so on to buy offers at the auction.

Ravenblade1979
10-15-2007, 05:36 PM
I am still thinking about an auction house. You should be able to offer diamonds, plats, nails, stones and so on to buy offers at the auction.

Don't think about it lets get it done...they would love it.

ViperZakuto
10-15-2007, 06:02 PM
both these idea's are nice =D

xAndrewx
10-15-2007, 08:27 PM
hmm auction sounds fun. how would you like it?
once you lay an item down it'll ask you what you'd like to sell it for, either diamonds, plat, stones etc and then the amount you'd like for the item maybe?

Sam
10-15-2007, 08:40 PM
hmm auction sounds fun. how would you like it?
once you lay an item down it'll ask you what you'd like to sell it for, either diamonds, plat, stones etc and then the amount you'd like for the item maybe?

I don't know. Maybe you offer your item and set what sort of stuff you want and the minimum of amount, so ppl can start their offers. But it must be so that they can only bid what they have in their inventory.

xAndrewx
10-15-2007, 08:50 PM
hmm so say someone wanted to sell 50 diamonds, I'd place an auction in a box [also amount] and then its up to the seller to accept or not?

Sam
10-15-2007, 09:07 PM
hmm so say someone wanted to sell 50 diamonds, I'd place an auction in a box [also amount] and then its up to the seller to accept or not?

No. Ever bought by ebay? You place your auction in the box and set the min. price to 2 dias. Now ppl can start to offer 3 dias, the next player offers 5 dias aso.

seanthien
10-15-2007, 09:10 PM
hmm so say someone wanted to sell 50 diamonds, I'd place an auction in a box [also amount] and then its up to the seller to accept or not?

-places down silver coin-
Me: Big starts at 1 dia!

Some kid:OMg omG TAT RARE?!??!!m-Places down 10 dias-

W1N

Castle/guild wars would sound ok.

xAndrewx
10-15-2007, 09:13 PM
oh thats cool @ ebay !!!
would need to set up some value for each item depending on the other. could maybe make a gBay [graal bay]
generally, all the people make a bid, once the time has ran out the player chooses which item[s] to go for?

Sam
10-15-2007, 10:25 PM
oh thats cool @ ebay !!!
would need to set up some value for each item depending on the other. could maybe make a gBay [graal bay]
generally, all the people make a bid, once the time has ran out the player chooses which item[s] to go for?

Nice idea ^^

ViperZakuto
10-15-2007, 11:02 PM
Here's a quick idea. kinda like castle wars lol

Make a spar that has two teams. Any improvements on weapons and armor will be void in this arena. Also, make everybody's speed the same. make a minimum number of slots on each team say 2 per team, and a max of 10 per team. the winners of the round will get tokens that they can spend on items. Come up with some cool items, with not too great of stats. Then, they can spend there tokens on these items.

can anybody improve on this idea? I will think more about it.

xAndrewx
10-15-2007, 11:11 PM
that'd be cool, maybe make the players damage all count the same. so then it's based on luck of the winning people alive

ViperZakuto
10-15-2007, 11:19 PM
yeah so it's more skill than items.