Author Topic: Blackrock in the trash.  (Read 6128 times)

0 Members and 1 Guest are viewing this topic.

Offline Crome969

  • Elite
  • *
  • *
  • Posts: 2098
  • Activity:
    0%
  • Reputation Power: 25
  • Crome969 is on the verge of being accepted.Crome969 is on the verge of being accepted.Crome969 is on the verge of being accepted.Crome969 is on the verge of being accepted.Crome969 is on the verge of being accepted.
  • Gender: Male
  • UO Enthusiast
  • Respect: +211
  • Referrals: 10
    • View Profile
    • ScriptSDK
Re: Blackrock in the trash.
« Reply #15 on: October 01, 2011, 01:31:11 AM »
0

Offline freddy

  • Sr. Member
  • *
  • Posts: 271
  • Activity:
    0%
  • Reputation Power: 4
  • freddy has no influence.
  • Gender: Male
  • Respect: +37
  • Referrals: 1
    • View Profile
Re: Blackrock in the trash.
« Reply #16 on: October 01, 2011, 08:59:43 AM »
0
With this sub you have 2 goals: Find blackrock and then move blackrock to trash. You really don't need compartmentalize such a basic task.

Offline Endless Night

  • Global Moderator
  • *
  • *
  • Posts: 5467
  • Activity:
    0%
  • Reputation Power: 62
  • Endless Night is awe-inspiring!Endless Night is awe-inspiring!Endless Night is awe-inspiring!Endless Night is awe-inspiring!Endless Night is awe-inspiring!Endless Night is awe-inspiring!Endless Night is awe-inspiring!Endless Night is awe-inspiring!Endless Night is awe-inspiring!Endless Night is awe-inspiring!Endless Night is awe-inspiring!Endless Night is awe-inspiring!
  • Respect: +393
  • Referrals: 1
    • View Profile
Re: Blackrock in the trash.
« Reply #17 on: October 01, 2011, 09:10:55 AM »
0
this is the snippet i want and takers...

Code: [Select]
Gosub PickupBlackRockFromFloor
gosub FindTrashCanAndMoveToIt
gosub SweepFloorsAndVacummCarpets
gosub WashWindowsAndCutTheGrass
gosub PerformBasicCarMaintaince
gosub CleanTheACUnit
gosub RepaintTheHouseItsLookingShabby
gosub PlaceBlackRockInTheTrashCan
halt
Outlaw Josey Wales - "Manwink, A Long Gone Scripty, and Endless are always teasing us with their private sections lol. What there realy saying is scripters rule and users drool."
Briza - "Your a living breathing vortex of usefulness."

Offline Crome969

  • Elite
  • *
  • *
  • Posts: 2098
  • Activity:
    0%
  • Reputation Power: 25
  • Crome969 is on the verge of being accepted.Crome969 is on the verge of being accepted.Crome969 is on the verge of being accepted.Crome969 is on the verge of being accepted.Crome969 is on the verge of being accepted.
  • Gender: Male
  • UO Enthusiast
  • Respect: +211
  • Referrals: 10
    • View Profile
    • ScriptSDK
Re: Blackrock in the trash.
« Reply #18 on: October 01, 2011, 12:58:00 PM »
0
this is the snippet i want and takers...

Code: [Select]
Gosub PickupBlackRockFromFloor
gosub FindTrashCanAndMoveToIt
gosub SweepFloorsAndVacummCarpets
gosub WashWindowsAndCutTheGrass
gosub PerformBasicCarMaintaince
gosub CleanTheACUnit
gosub RepaintTheHouseItsLookingShabby
gosub PlaceBlackRockInTheTrashCan
halt
Now i feel like you are joking about my Comment:P
Well i bymyself have following Rules in Learning\Constructing Code:
  • 1) Define what i want to Code
  • 2) Splitting Code in Single Bigger Parts
  • 3) Splitting each Big Part in smaller Parts
  • 4) Develop the Code
  • 5) Test the Code
  • 6) Joining splitted Code in MainCode in the Bigparts
  • 7) Do Code Cleaning, Synchronisize with interacting Menus
  • 8) Use and maybe Add new Features
I do a lot of Business Process Modeling in my Company and using a similar system to develop bigger Code.
Advantages:
  • You define your Script before you Code
  • Smaller Code Subs mean its a lot of easyier to fix Bugs

Disadvantages:
  • Lot of Time for predevelopment
Crome

Offline Endless Night

  • Global Moderator
  • *
  • *
  • Posts: 5467
  • Activity:
    0%
  • Reputation Power: 62
  • Endless Night is awe-inspiring!Endless Night is awe-inspiring!Endless Night is awe-inspiring!Endless Night is awe-inspiring!Endless Night is awe-inspiring!Endless Night is awe-inspiring!Endless Night is awe-inspiring!Endless Night is awe-inspiring!Endless Night is awe-inspiring!Endless Night is awe-inspiring!Endless Night is awe-inspiring!Endless Night is awe-inspiring!
  • Respect: +393
  • Referrals: 1
    • View Profile
Re: Blackrock in the trash.
« Reply #19 on: October 01, 2011, 01:17:13 PM »
0
yea chrome was jesting.  I also follow a simular method.

For the past few weeks ive been compiling library's often of simple things... finding trashcan.. making generic and putting in my library. So far ive compliled these  (but thier will be more as i strip out code from my vairous scripts)

Code: [Select]
  set %ENs_Subs_RuneSpell %EN_SubScriptPath , \ENs-Subs-SpellsAndRuneBook.txt
  set %ENs_Subs_Standard  %EN_SubScriptPath , \ENs-Subs-Standard.txt
  set %ENs_Subs_Bods      %EN_SubScriptPath , \ENs-Subs-BodsAndNPCs.txt
  set %ENs_Subs_NPCs      %EN_SubScriptPath , \ENs-Subs-BodsAndNPCs.txt
  set %ENs_Subs_Menus     %EN_SubScriptPath , \ENs-Subs-Menus.txt
  set %ENs_Subs_Banking   %EN_SubScriptPath , \ENs-Subs-BanksAndHome.txt
  set %ENs_Subs_Home      %EN_SubScriptPath , \ENs-Subs-BanksAndHome.txt
  set %ENs_Subs_Pets      %EN_SubScriptPath , \ENs-Subs-Pets.txt


example of usage - Below Initializes all runebooks in your backpack named bank, Sets next rune/book to a random selection.   Next line recalls to bank .. heals char / and or pets if needed, opens bank and any resource boxes needed.  Not bad for 2 lines of code.

Code: [Select]
  call %ENs_Subs_RuneSpell BookLoopSetup Bank         %RuneBooks_Bank         #TRUE
  call %ENs_Subs_Banking  BankRun
Outlaw Josey Wales - "Manwink, A Long Gone Scripty, and Endless are always teasing us with their private sections lol. What there realy saying is scripters rule and users drool."
Briza - "Your a living breathing vortex of usefulness."

Tags: