Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- oI = nil
- function eventChatCommand(n,c)
- local args={}
- for argument in c:gmatch("[^%s]+") do
- table.insert(args,argument)
- end
- if string.lower(args[1])==C.one then
- if A[n] then
- args[2]=table.concat(args," ",2)
- if string.lower(args[2])=='caixa pequena' then
- oI = 1
- ui.addPopup(0,0,t(n,'msgCone').."<font color='#BABD2F'>"..string.upper(args[2]),n,4,26,w,true)
- ui.addTextArea(1,"<a href='event:useObject'><J>"..t(n,'ask1UseO').."</a>",n,715,374,h,w,0x324650,0x212F36,0.8,true)
- elseif string.lower(args[2])=='caixa grande' then
- oI = 2
- ui.addPopup(0,0,t(n,'msgCone').."<font color='#BABD2F'>"..string.upper(args[2]),n,4,26,w,true)
- ui.addTextArea(1,"<a href='event:useObject'><J>"..t(n,'ask1UseO').."</a>",n,715,374,h,w,0x324650,0x212F36,0.8,true)
- elseif string.lower(args[2])=='tabua pequena' or string.lower(args[2])=='tábua pequena' then
- oI = 3
- ui.addPopup(0,0,t(n,'msgCone').."<font color='#BABD2F'>"..string.upper(args[2]),n,4,26,w,true)
- ui.addTextArea(1,"<a href='event:useObject'><J>"..t(n,'ask1UseO').."</a>",n,715,374,h,w,0x324650,0x212F36,0.8,true)
- elseif string.lower(args[2])=='tabua grande' or string.lower(args[2])=='tábua grande' then
- oI = 4
- ui.addPopup(0,0,t(n,'msgCone').."<font color='#BABD2F'>"..string.upper(args[2]),n,4,26,w,true)
- ui.addTextArea(1,"<a href='event:useObject'><J>"..t(n,'ask1UseO').."</a>",n,715,374,h,w,0x324650,0x212F36,0.8,true)
- elseif string.lower(args[2])=='bola' then
- oI = 6
- ui.addPopup(0,0,t(n,'msgCone').."<font color='#BABD2F'>"..string.upper(args[2]),n,4,26,w,true)
- ui.addTextArea(1,"<a href='event:useObject'><J>"..t(n,'ask1UseO').."</a>",n,715,374,h,w,0x324650,0x212F36,0.8,true)
- elseif string.lower(args[2])=='trampolim' then
- oI = 7
- ui.addPopup(0,0,t(n,'msgCone').."<font color='#BABD2F'>"..string.upper(args[2]),n,4,26,w,true)
- ui.addTextArea(1,"<a href='event:useObject'><J>"..t(n,'ask1UseO').."</a>",n,715,374,h,w,0x324650,0x212F36,0.8,true)
- elseif string.lower(args[2])=='bigorna' then
- oI = 10
- ui.addPopup(0,0,t(n,'msgCone').."<font color='#BABD2F'>"..string.upper(args[2]),n,4,26,w,true)
- ui.addTextArea(1,"<a href='event:useObject'><J>"..t(n,'ask1UseO').."</a>",n,715,374,h,w,0x324650,0x212F36,0.8,true)
- elseif string.lower(args[2])=='cn' or string.lower(args[2])=='cannon' then
- oI = 17
- ui.addPopup(0,0,t(n,'msgCone').."<font color='#BABD2F'>"..string.upper(args[2]),n,4,26,w,true)
- ui.addTextArea(1,"<a href='event:useObject'><J>"..t(n,'ask1UseO').."</a>",n,715,374,h,w,0x324650,0x212F36,0.8,true)
- elseif string.lower(args[2])=='sp' or string.lower(args[2])=='spirit' then
- oI = 24
- ui.addPopup(0,0,t(n,'msgCone').."<font color='#BABD2F'>"..string.upper(args[2]),n,4,26,w,true)
- ui.addTextArea(1,"<a href='event:useObject'><J>"..t(n,'ask1UseO').."</a>",n,715,374,h,w,0x324650,0x212F36,0.8,true)
- elseif string.lower(args[2])=='balão' or string.lower(args[2])=='balloon' then
- oI = 28
- ui.addPopup(0,0,t(n,'msgCone').."<font color='#BABD2F'>"..string.upper(args[2]),n,4,26,w,true)
- ui.addTextArea(1,"<a href='event:useObject'><J>"..t(n,'ask1UseO').."</a>",n,715,374,h,w,0x324650,0x212F36,0.8,true)
- elseif string.lower(args[2])=='runa' then
- oI = 32
- ui.addPopup(0,0,t(n,'msgCone').."<font color='#BABD2F'>"..string.upper(args[2]),n,4,26,w,true)
- ui.addTextArea(1,"<a href='event:useObject'><J>"..t(n,'ask1UseO').."</a>",n,715,374,h,w,0x324650,0x212F36,0.8,true)
- elseif string.lower(args[2])=='maçã' then
- oI = 39
- ui.addPopup(0,0,t(n,'msgCone').."<font color='#BABD2F'>"..string.upper(args[2]),n,4,26,w,true)
- ui.addTextArea(1,"<a href='event:useObject'><J>"..t(n,'ask1UseO').."</a>",n,715,374,h,w,0x324650,0x212F36,0.8,true)
- elseif string.lower(args[2])=='ovelha' then
- oI = 40
- ui.addPopup(0,0,t(n,'msgCone').."<font color='#BABD2F'>"..string.upper(args[2]),n,4,26,w,true)
- ui.addTextArea(1,"<a href='event:useObject'><J>"..t(n,'ask1UseO').."</a>",n,715,374,h,w,0x324650,0x212F36,0.8,true)
- elseif string.lower(args[2])=='tábua de gelo' or string.lower(args[2])=='tabua gelo' then
- oI = 45
- ui.addPopup(0,0,t(n,'msgCone').."<font color='#BABD2F'>"..string.upper(args[2]),n,4,26,w,true)
- ui.addTextArea(1,"<a href='event:useObject'><J>"..t(n,'ask1UseO').."</a>",n,715,374,h,w,0x324650,0x212F36,0.8,true)
- elseif string.lower(args[2])=='tábua de chocolate' or string.lower(args[2])=='tábua chocolate' or string.lower(args[2])=='choco tábua' then
- oI = 46
- ui.addPopup(0,0,t(n,'msgCone').."<font color='#BABD2F'>"..string.upper(args[2]),n,4,26,w,true)
- ui.addTextArea(1,"<a href='event:useObject'><J>"..t(n,'ask1UseO').."</a>",n,715,374,h,w,0x324650,0x212F36,0.8,true)
- elseif string.lower(args[2])=='nuvem' then
- oI = 57
- ui.addPopup(0,0,t(n,'msgCone').."<font color='#BABD2F'>"..string.upper(args[2]),n,4,26,w,true)
- ui.addTextArea(1,"<a href='event:useObject'><J>"..t(n,'ask1UseO').."</a>",n,715,374,h,w,0x324650,0x212F36,0.8,true)
- elseif string.lower(args[2])=='bolha' then
- oI = 59
- ui.addPopup(0,0,t(n,'msgCone').."<font color='#BABD2F'>"..string.upper(args[2]),n,4,26,w,true)
- ui.addTextArea(1,"<a href='event:useObject'><J>"..t(n,'ask1UseO').."</a>",n,715,374,h,w,0x324650,0x212F36,0.8,true)
- elseif string.lower(args[2])=='mini-tabua' or string.lower(args[2])=='mini tabua' then
- oI = 60
- ui.addPopup(0,0,t(n,'msgCone').."<font color='#BABD2F'>"..string.upper(args[2]),n,4,26,w,true)
- ui.addTextArea(1,"<a href='event:useObject'><J>"..t(n,'ask1UseO').."</a>",n,715,374,h,w,0x324650,0x212F36,0.8,true)
- elseif string.lower(args[2])=='caixa de acompanhamento' or string.lower(args[2])=='caixa coração' then
- oI = 61
- ui.addPopup(0,0,t(n,'msgCone').."<font color='#BABD2F'>"..string.upper(args[2]),n,4,26,w,true)
- ui.addTextArea(1,"<a href='event:useObject'><J>"..t(n,'ask1UseO').."</a>",n,715,374,h,w,0x324650,0x212F36,0.8,true)
- elseif string.lower(args[2])=='runa estável' or string.lower(args[2])=='runa estavel' then
- oI = 62
- ui.addPopup(0,0,t(n,'msgCone').."<font color='#BABD2F'>"..string.upper(args[2]),n,4,26,w,true)
- ui.addTextArea(1,"<a href='event:useObject'><J>"..t(n,'ask1UseO').."</a>",n,715,374,h,w,0x324650,0x212F36,0.8,true)
- elseif string.lower(args[2])=='tabua grandona' or string.lower(args[2])=='tabua super-grande' or string.lower(args[2])=='big plank' then
- oI = 67
- ui.addPopup(0,0,t(n,'msgCone').."<font color='#BABD2F'>"..string.upper(args[2]),n,4,26,w,true)
- ui.addTextArea(1,"<a href='event:useObject'><J>"..t(n,'ask1UseO').."</a>",n,715,374,h,w,0x324650,0x212F36,0.8,true)
- elseif string.lower(args[2])=='caixa triângular' or string.lower(args[2])=='caixa triangular' or string.lower(args[2])=='caixa illuminati' then
- oI = 68
- ui.addPopup(0,0,t(n,'msgCone').."<font color='#BABD2F'>"..string.upper(args[2]),n,4,26,w,true)
- ui.addTextArea(1,"<a href='event:useObject'><J>"..t(n,'ask1UseO').."</a>",n,715,374,h,w,0x324650,0x212F36,0.8,true)
- elseif string.lower(args[2])=='tábua s' or string.lower(args[2])=='tabua s' then
- oI = 69
- ui.addPopup(0,0,t(n,'msgCone').."<font color='#BABD2F'>"..string.upper(args[2]),n,4,26,w,true)
- ui.addTextArea(1,"<a href='event:useObject'><J>"..t(n,'ask1UseO').."</a>",n,715,374,h,w,0x324650,0x212F36,0.8,true)
- else
- ui.addPopup(0,0,t(n,'fail').." {<font color='#BABD2F'>"..args[2],n,4,26,w,true)
- end
- else
- ui.addPopup(0,0,t(n,'msgAcessOne'),n,4,26,w,true)
- end
- elseif string.lower(args[1])==C.two then
- if A[n] then
- if args[2] then
- if string.lower(args[2])=='madeira' then
- pI = 0
- if args[3] and args[4] and args[5] and args[6] then Restitution = args[3]; Friction = args[4]; Width = args[5]; Height = args[6] ; else Restitution = 0.2 ; Friction = 0.3; Width = 15 ; Height = 45 ; end
- ui.addPopup(0,0,t(n,'msgCone').."<font color='#BABD2F'>"..string.upper(args[2]),n,4,26,w,true)
- ui.addTextArea(2,"<a href='event:useGround'><J>"..t(n,'ask1UseP').."</a>",n,715,344,h,w,0x324650,0x212F36,0.8,true)
- elseif string.lower(args[2])=='gelo' then
- pI = 1
- if args[3] and args[4] and args[5] and args[6] then Restitution = args[3]; Friction = args[4]; Width = args[5]; Height = args[6] ; else Restitution = 0.2 ; Friction = 0 ; Width = 15 ; Height = 45 ; end
- ui.addPopup(0,0,t(n,'msgCone').."<font color='#BABD2F'>"..string.upper(args[2]),n,4,26,w,true)
- ui.addTextArea(2,"<a href='event:useGround'><J>"..t(n,'ask1UseP').."</a>",n,715,344,h,w,0x324650,0x212F36,0.8,true)
- elseif string.lower(args[2])=='trampolim' then
- pI = 2
- if args[3] and args[4] and args[5] and args[6] then Restitution = args[3]; Friction = args[4]; Width = args[5]; Height = args[6] ; else Restitution = 1.2 ; Friction = 0 ; Width = 15 ; Height = 45 ; end
- ui.addPopup(0,0,t(n,'msgCone').."<font color='#BABD2F'>"..string.upper(args[2]),n,4,26,w,true)
- ui.addTextArea(2,"<a href='event:useGround'><J>"..t(n,'ask1UseP').."</a>",n,715,344,h,w,0x324650,0x212F36,0.8,true)
- elseif string.lower(args[2])=='lava' then
- pI = 3
- if args[3] and args[4] and args[5] and args[6] then Restitution = args[3]; Friction = args[4]; Width = args[5]; Height = args[6] ; else Restitution = 20 ; Friction = 0 ; Width = 15 ; Height = 45 ; end
- ui.addPopup(0,0,t(n,'msgCone').."<font color='#BABD2F'>"..string.upper(args[2]),n,4,26,w,true)
- ui.addTextArea(2,"<a href='event:useGround'><J>"..t(n,'ask1UseP').."</a>",n,715,344,h,w,0x324650,0x212F36,0.8,true)
- elseif string.lower(args[2])=='chocolate' then
- pI = 4
- if args[3] and args[4] and args[5] and args[6] then Restitution = args[3]; Friction = args[4]; Width = args[5]; Height = args[6] ; else Restitution = 0.2 ; Friction = 20 ; Width = 15 ; Height = 45 ; end
- ui.addPopup(0,0,t(n,'msgCone').."<font color='#BABD2F'>"..string.upper(args[2]),n,4,26,w,true)
- ui.addTextArea(2,"<a href='event:useGround'><J>"..t(n,'ask1UseP').."</a>",n,715,344,h,w,0x324650,0x212F36,0.8,true)
- elseif string.lower(args[2])=='terra' then
- pI = 5
- if args[3] and args[4] and args[5] and args[6] then Restitution = args[3]; Friction = args[4]; Width = args[5]; Height = args[6] ; else Restitution = 0.2 ; Friction = 0.3 ; Width = 15 ; Height = 45 ; end
- ui.addPopup(0,0,t(n,'msgCone').."<font color='#BABD2F'>"..string.upper(args[2]),n,4,26,w,true)
- ui.addTextArea(2,"<a href='event:useGround'><J>"..t(n,'ask1UseP').."</a>",n,715,344,h,w,0x324650,0x212F36,0.8,true)
- elseif string.lower(args[2])=='grama' then
- pI = 6
- if args[3] and args[4] and args[5] and args[6] then Restitution = args[3]; Friction = args[4]; Width = args[5]; Height = args[6] ; else Restitution = 0.2 ; Friction = 0.3 ; Width = 15 ; Height = 45 ; end
- ui.addPopup(0,0,t(n,'msgCone').."<font color='#BABD2F'>"..string.upper(args[2]),n,4,26,w,true)
- ui.addTextArea(2,"<a href='event:useGround'><J>"..t(n,'ask1UseP').."</a>",n,715,344,h,w,0x324650,0x212F36,0.8,true)
- elseif string.lower(args[2])=='areia' then
- pI = 7
- if args[3] and args[4] and args[5] and args[6] then Restitution = args[3]; Friction = args[4]; Width = args[5]; Height = args[6] ; else Restitution = 0.2 ; Friction = 0.1 ; Width = 15 ; Height = 45 ; end
- ui.addPopup(0,0,t(n,'msgCone').."<font color='#BABD2F'>"..string.upper(args[2]),n,4,26,w,true)
- ui.addTextArea(2,"<a href='event:useGround'><J>"..t(n,'ask1UseP').."</a>",n,715,344,h,w,0x324650,0x212F36,0.8,true)
- elseif string.lower(args[2])=='nuvem' then
- pI = 8
- if args[3] and args[4] and args[5] and args[6] then Restitution = args[3]; Friction = args[4]; Width = args[5]; Height = args[6] ; else Restitution = 0.2 ; Friction = 0.3 ; Width = 15 ; Height = 45 ; end
- ui.addPopup(0,0,t(n,'msgCone').."<font color='#BABD2F'>"..string.upper(args[2]),n,4,26,w,true)
- ui.addTextArea(2,"<a href='event:useGround'><J>"..t(n,'ask1UseP').."</a>",n,715,344,h,w,0x324650,0x212F36,0.8,true)
- elseif string.lower(args[2])=='água' or string.lower(args[2])=='agua' then
- pI = 9
- if args[3] and args[4] and args[5] and args[6] then Restitution = args[3]; Friction = args[4]; Width = args[5]; Height = args[6] ; else Restitution = 0 ; Friction = 0 ; Width = 15 ; Height = 45 ; end
- ui.addPopup(0,0,t(n,'msgCone').."<font color='#BABD2F'>"..string.upper(args[2]),n,4,26,w,true)
- ui.addTextArea(2,"<a href='event:useGround'><J>"..t(n,'ask1UseP').."</a>",n,715,344,h,w,0x324650,0x212F36,0.8,true)
- elseif string.lower(args[2])=='pedra' then
- pI = 10
- if args[3] and args[4] and args[5] and args[6] then Restitution = args[3]; Friction = args[4]; Width = args[5]; Height = args[6] ; else Restitution = 0 ; Friction = 0.3 ; Width = 15 ; Height = 45 ; end
- ui.addPopup(0,0,t(n,'msgCone').."<font color='#BABD2F'>"..string.upper(args[2]),n,4,26,w,true)
- ui.addTextArea(2,"<a href='event:useGround'><J>"..t(n,'ask1UseP').."</a>",n,715,344,h,w,0x324650,0x212F36,0.8,true)
- elseif string.lower(args[2])=='neve' then
- pI = 11
- if args[3] and args[4] and args[5] and args[6] then Restitution = args[3]; Friction = args[4]; Width = args[5]; Height = args[6] ; else Restitution = 0.1 ; Friction = 0.05 ; Width = 15 ; Height = 45 ; end
- ui.addPopup(0,0,t(n,'msgCone').."<font color='#BABD2F'>"..string.upper(args[2]),n,4,26,w,true)
- ui.addTextArea(2,"<a href='event:useGround'><J>"..t(n,'ask1UseP').."</a>",n,715,344,h,w,0x324650,0x212F36,0.8,true)
- elseif string.lower(args[2])=='retângulo' or string.lower(args[2])=='retangulo' then
- pI = 12
- if args[3] and args[4] and args[5] and args[6] then Restitution = args[3]; Friction = args[4]; Width = args[5]; Height = args[6] ; else Restitution = 0.2 ; Friction = 0.3 ; Width = 15 ; Height = 45 ; end
- ui.addPopup(0,0,t(n,'msgCone').."<font color='#BABD2F'>"..string.upper(args[2]),n,4,26,w,true)
- ui.addTextArea(2,"<a href='event:useGround'><J>"..t(n,'ask1UseP').."</a>",n,715,344,h,w,0x324650,0x212F36,0.8,true)
- if args[7] then
- pC = args[7]
- else
- pC = 0
- end
- elseif string.lower(args[2])=='círculo' or string.lower(args[2])=='circulo' then
- pI = 13
- if args[3] and args[4] and args[5] and args[6] then Restitution = args[3]; Friction = args[4]; Width = args[5]; Height = args[6] ; else Restitution = 0.2 ; Friction = 0.3 ; Width = 15 ; Height = 45 ; end
- ui.addPopup(0,0,t(n,'msgCone').."<font color='#BABD2F'>"..string.upper(args[2]),n,4,26,w,true)
- ui.addTextArea(2,"<a href='event:useGround'><J>"..t(n,'ask1UseP').."</a>",n,715,344,h,w,0x324650,0x212F36,0.8,true)
- if args[7] then
- pC = args[7]
- else
- pC = 0
- end
- elseif string.lower(args[2])=='teia' or string.lower(args[2])=='web' then
- pI = 15
- if args[3] and args[4] and args[5] and args[6] then Restitution = args[3]; Friction = args[4]; Width = args[5]; Height = args[6] ; else Restitution = 0 ; Friction = 0 ; Width = 15 ; Height = 45 ; end
- ui.addPopup(0,0,t(n,'msgCone').."<font color='#BABD2F'>"..string.upper(args[2]),n,4,26,w,true)
- ui.addTextArea(2,"<a href='event:useGround'><J>"..t(n,'ask1UseP').."</a>",n,715,344,h,w,0x324650,0x212F36,0.8,true)
- else
- ui.addPopup(0,0,t(n,'fail').." {<font color='#BABD2F'>"..args[2],n,4,26,w,true)
- end
- else
- ui.addPopup(0,0,t(n,'fail').." {<font color='#BABD2F'>"..args[1],n,4,26,w,true)
- end
- else
- ui.addPopup(0,0,t(n,'msgAcessOne'),n,4,26,w,true)
- end
- elseif string.lower(args[1])==C.three then
- if A[n] then
- if args[2] then
- if string.lower(args[2])==C.one then
- C.one = string.lower(args[3])
- elseif string.lower(args[2])==C.two then
- C.two = string.lower(args[3])
- elseif string.lower(args[2])==C.four then
- C.four = string.lower(args[3])
- elseif string.lower(args[2])==C.five then
- C.five = string.lower(args[3])
- elseif string.lower(args[2])==C.six then
- C.six = string.lower(args[3])
- elseif string.lower(args[2])==C.seven then
- C.seven = string.lower(args[3])
- end
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement