Level cooking script

Discussion about the technical aspects of scripting. Ask about all issues involving your freelance projects here.
Locked
User avatar
Devlin
Legendary Scribe
Posts: 652
Joined: Thu Mar 18, 2010 12:50 pm

Level cooking script

Post by Devlin »

Basic, gets the job done tho. Slight editing done, raw command to get the job done but it works.

EDIT: Small typo in it, fixed now

Code: Select all

;==================================
; Script Name: Cooking 1.0
; Author: Athelstan - 166467051 - oceans@gamesnet.it
; Version: 1.0
; Client Tested with: 6.0.1.3
; EUO version tested with: 1.50
; Shard OSI / FS:  UODreams.it
; Revision Date: 12/10/07
; Public Release: 12/09/07
; Purpose: Script Cooking
;Go your home, stay near a stove, secure a chest
;In the chest put in 70-80 skillet and
;6000-7000 cut of Raw Ribs, open the chest and
;play the script. 0-100 cooking
;I advise to train the skill cooking from a baker
;www.sweetuo.com
;==================================
;Select the chest
Set %Chest JQIDQRD ;Change here
;==================================
;Don't edit now
Set %Skilled DND
Set %Rawfish IND
Set %Fishsteak HND
Set %WeiSel ( #MAXWEIGHT - 25 )

Loop:

GoSub Skill
GoSub RestockFish
GoSub Cook
GoSub Wei

Goto Loop

;==================================
Sub Cook
{
    finditem %Skilled C_ , %ZFUKNVD
    wait 10
    click 350 420 f   ; You must change these two numbers to the X, Y Coords
                      ; of where the Fish steak button islocated in the menu
    wait 5
}
;==================================
Sub Wei
{
    If #WEIGHT > %WeiSel
    {
     finditem %Fishteak C_ , #BACKPACKID
     wait 10
     Exevent Drag #FINDID #FINDSTACK
	   wait 10
	   Exevent Dropc %Chest
	   wait 10
    }
    return
}
;==================================
Sub RestockFish
{
     finditem %Rawfish C_ , %Chest
     wait 5
     If #FINDID = 0
        {
        Display The Steaks are finish
        halt
        }
     Exevent Drag #FINDID 1
	   wait 10
	   Exevent Dropc #BACKPACKID
	   wait 10
	   return
}
;==================================
Sub Skill
{
    chooseskill Cook
    if #skill = 1000
       {
       display Congratulation You finish
       halt
       }
    return
}
Last edited by Devlin on Sat Dec 10, 2011 2:01 am, edited 1 time in total.
Resident Wiki Editor/Village Idiot

EasyUO Scripts
ReArmer
ReArmer (Old Version)
ReReader
Separate Journal for Guild or Public Chat (Old)
---------------------------------------------
Combat Focus Guide (Godmode Formula)
User avatar
Devlin
Legendary Scribe
Posts: 652
Joined: Thu Mar 18, 2010 12:50 pm

Re: Level cooking script

Post by Devlin »

Forgot to mention, requires a bit of editing
1. You have to change the ID for the chest where the steaks are located (near the top)
2. You must cook one fish steak first THEN you also must change the X, Y coords on a line. Inside the "Sub Cook" section is a line "click 350 420 f" Change the numbers 350, 420 to what the X, Y coords of your Make Last button are.
Resident Wiki Editor/Village Idiot

EasyUO Scripts
ReArmer
ReArmer (Old Version)
ReReader
Separate Journal for Guild or Public Chat (Old)
---------------------------------------------
Combat Focus Guide (Godmode Formula)
Locked