Good job!
|
|
Will need changing according to serverCode:case 671: //By Bill 2010! if(actionTimer <= 1){ if(playerHasItemAmount(968, 1)){ deleteItem(968, getItemSlot(968), 1); attackPlayersWithin(300, 40, 10); attackPlayersWithin(300, 40, 10); attackPlayersWithin(500, 40, 10); attackPlayersWithin(400, 40, 10); staticAnimation(2109, absX, absY, 100); stillgfx(567, absY, absX); hitDiff = 8 + misc.random(20); inCombat(); sendMessage("You shot the catapult at a player..."); sendMessage("Hopefully it didn't hit YOUR team!"); txt4 = "I shot the cannon - move, team!"; string4UpdateRequired = true; actionTimer = 45; } else { sendMessage("Don't click so fast!"); } } break;![]()

Good job!




Nope.

wrong, bad, and leeched (saw this on some thing from 2007 as i recall)
edit: btw, this is how u make it more realistic
wow, already 173% better then wat u postedCode:if (objectID == CATAPULT) { showInterface(11169); }![]()

The fuck is this horrible shit?
My version is nothing more than fixing your disgusting shit. I do not suggest using this programming style at all for this.Code:case 671: if(actionTimer <= 1) { if(!playerHasItemAmount(968, 1)) { sendMessage("You don't have anything to load the catapault with!"); } else { deleteItem(968, getItemSlot(968), 1); int X = misc.random(zamorakDamageAreaX.length-1); int Y = misc.random(zamorakDamageAreaY.length-1); dealDamageTo(zamorakDamageAreaX[X], ZamorakDamageAreaY[Y], delay); //you'll need to add this yourself, I hope you're not to stupid to not know how to use arrays staticAnimation(2109, absX, absY, 100); stillgfx(567, absY, absX); hitDiff = 8 + misc.random(20); sendMessage("You shot the catapult at a player..."); actionTimer = 45; } else { sendMessage("Don't click so fast!"); } } break;
kthkzbi
This is horrible.
I would have expected code like this is 08.
| « 377 dialog methods for both player and npc | Potions » |
| Thread Information |
Users Browsing this ThreadThere are currently 1 users browsing this thread. (0 members and 1 guests) |