dim color(31),g(31),a,b,c,d,e,n,x,y,ax,ay,bx,by,i,s,p,cx,cy
wp0,wp1,wp2,wp3,wp4,wp5,wp6,wp7,wp8,wp9,wp10,wp11,wp12,wp13
wp14,wp15,wp16,wp17,wp18,wp19,wp20,wp21,wp22,wp23,wp24,wp25
wp26,wp27,wp28,wp29,wp30,wp31,w,ex,ey,px,py,qx,qy,zx,zy,
//★★★★★★★★★★★声明变量★★★★★★★★★★★★
UserVar wp0=0 低级减伤害
UserVar wp1=0 低级经验
UserVar wp2=0 低级战斗
UserVar wp3=0 中级减伤害
UserVar wp4=0 中级经验
UserVar wp5=0 中级战斗
UserVar wp6=0 魔魂
UserVar wp7=0 幻魔
UserVar wp8=0 灵魂
UserVar wp9=0 魔魂之心
UserVar wp10=0 幻魔之心
UserVar wp11=0 权能金像
UserVar wp12=0 男天使
UserVar wp13=0 女天使
UserVar wp14=0 奇迹龙
UserVar wp15=0 皮皮(吉比)
UserVar wp16=0 佩佩(娜娜)
UserVar wp17=0 法猪
UserVar wp18=0 战猪
UserVar wp19=0 孤星龙
UserVar wp20=0 双星龙
UserVar wp21=0 凯隆
UserVar wp22=0 莎菲
UserVar wp23=0 钱袋(70W)
UserVar wp24=0 经验球(开)
UserVar wp25=0 经验球(盒)
UserVar wp26=0 特制球(开)
UserVar wp27=0 特制球(盒)
UserVar wp28=0 8*O礼包
UserVar wp29=0 12*XO礼包
UserVar wp30=0 双倍经验水
UserVar wp31=0 幸运草
//★★★★★★★★★★★★自定义物品的价格★★★★★★★★★
UserVar str1="第一句" 请输入自动叫喊的第1句话
UserVar str2="第二句" 请输入自动叫喊的第2句话
UserVar str3="第三句" 请输入自动叫喊的第3句话
UserVar Yanshi=5000 两句喊话之间的等待时间,1秒钟是1000
//★★★★★★★★★★★设置结束★★★★★★★★★★★★
Rem 开始喊话
Delay Yanshi
KeyPress 13,1
Delay 300
SayString str1
KeyPress 13,1
Gosub 检查是否有交易
Delay Yanshi
KeyPress 13,1
Delay 300
SayString str2
KeyPress 13,1
Gosub 检查是否有交易
Delay Yanshi
KeyPress 13,1
Delay 300
SayString str3
KeyPress 13,1
Gosub 检查是否有交易
Delay 300
Goto 开始喊话
EndScript 
Sub 检查是否有交易
    IfColor 508,269,efd606,0
        MoveTo 443,446
        Delay 500
        LeftClick 1
        Delay 500
        Gosub 检查放物品
        Delay 300
        Gosub 对方失误提前按下了交易
        Delay 300
        Gosub 检查交易是否被对方提前结束
        Delay 300
        Gosub 计算价格
    EndIf 
Return 检查是否有交易
//★★★★★★★★★★★检测放物品★★★★★★★★★
Sub 检查放物品
    a=0
    b=0
    c=0
    d=0
    n=0
    x=41:y=281
    ax=112:ay=158
    For 12
        Rem 开始检查放物品
        If a>=5
            If c>=1
                Goto 检查放物品结束
            EndIf 
            Gosub 取消交易
            Goto 开始喊话
        EndIf 
        If d>=1
            Goto 已获得交易框坐标