Forum

> > CS2D > Scripts > can someone fix this?
ForenübersichtCS2D-Übersicht Scripts-ÜbersichtEinloggen, um zu antworten

Englisch can someone fix this?

63 Antworten
Seite
Zum Anfang Vorherige 1 2 3 4 Nächste Zum Anfang

alt Re: can someone fix this?

GooDCaT
User Off Offline

Zitieren
user AbAeterno hat geschrieben
What are you trying to do with "Spawnplayer"?

To change a player's new spawn in tibia, use this:
1
PLAYERS[id].Spawn = {X, Y}
Note:X and Y is in pixels, not tiles!

EDIT:With new spawn, I mean where would the player spawn if he/she dies.

He did not want to choose position, he wants a fixed position

@topic
1
2
3
4
5
6
7
8
9
10
11
12
13
elseif command =="j" then
               parse("setpos "..id.." 7696 12496")
          end
               addhook("startround","startround")
                    function startround (id,spawn)
                    parse("setpos "..id.." 7696 12496")
                         msg2(id,'©000255000you sent Player To Jail')
                    else
                         msg2(id,'©255000000 ERROR')
                    end
               return 1
          end
end

work?

alt Re: can someone fix this?

Yates
Reviewer Off Offline

Zitieren
If you want a normal spawn position there is one in the script. God damn you people, stop adding random shit while Weiwen already thought of it and added it. Stop being lazy by asking what to do when you could do it faster when looking in the script.

alt Re: can someone fix this?

skillerLTU
User Off Offline

Zitieren
user Yates hat geschrieben
If you want a normal spawn position there is one in the script. God damn you people, stop adding random shit while Weiwen already thought of it and added it. Stop being lazy by asking what to do when you could do it faster when looking in the script.



i though you dont want me to edit tibia

alt Re: can someone fix this?

Yates
Reviewer Off Offline

Zitieren
I don't. But if you're going to be stubborn and not listen then I'll at least help you to do it correctly without bugging the whole script a fuckillion times.

alt Re: can someone fix this?

GooDCaT
User Off Offline

Zitieren
user skillerLTU hat geschrieben
user Yates hat geschrieben
If you want a normal spawn position there is one in the script. God damn you people, stop adding random shit while Weiwen already thought of it and added it. Stop being lazy by asking what to do when you could do it faster when looking in the script.



i though you dont want me to edit tibia


depending on how you want to edit, okay oh yes
but being is somehow dangerous and I do not recommend
and I bet it is not tibia, he 's talking about teleports the player to "prison//jail"

alt Re: can someone fix this?

Yates
Reviewer Off Offline

Zitieren
user GooDCaT hat geschrieben
and I bet it is not tibia

He posted the same question in the Tibia thread and today made a thread that he's editing Tibia. It's more likely that he DOES mean Tibia.

alt Re: can someone fix this?

skillerLTU
User Off Offline

Zitieren
user Yates hat geschrieben
user GooDCaT hat geschrieben
and I bet it is not tibia

He posted the same question in the Tibia thread and today made a thread that he's editing Tibia. It's more likely that he DOES mean Tibia.


yes i am asking about tibia. sorry if you do not like that.



and please someone fix this command

alt Re: can someone fix this?

Bobakrome
User Off Offline

Zitieren
user Yates hat geschrieben
Use user Bobakrome's script and change:
1
'..jail..'

into the pixelx and pixely.


That is aleready done..

--EDIT!

There is it, i checked for all script errors, sorry i didn`t tested it but it may work

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
elseif command =='j' then
               local j = words:find(' ',4)
               local target = tonumber(words:sub(4,j))
               if target then
                    if player(target,'exists') then
                         local jail = j and tonumber(words:sub(j+1,words:find(' ',j+1))) or nil
                         if jail then
                     parse("'setpos '..target..' '..jail..'")
                     PLAYERS[target].Spawn = {'..jail..'}
                              return 1
                         end
                    end
               end
               msg2(id,'Send Him into Jail: !j <targetid> <pixel cooirdonates>')
               return 1

--EDIT2!

Woah i did just found the error*s
Should work now!

--EDIT3!

One more error by reading it from the post...

alt Re: can someone fix this?

Alistaire
User Off Offline

Zitieren
user skillerLTU hat geschrieben
LUA ERROR: .../wrapper.lua:525: attempt to concatenate local 'score' (a nil value)


So maybe you failed at making shit at another part of your script. Just maybe.

alt Re: can someone fix this?

Bobakrome
User Off Offline

Zitieren


Not my problem if u didn`t replaced wrapper.lua to the older one

--EDIT!

Alistaire are you speaking with him or me?

alt Re: can someone fix this?

skillerLTU
User Off Offline

Zitieren
not fixed... I FUCKED ALL MY SCRIPT!


I AM DELETING IT AT ALL!
no new posts here. my script is deleted. i will make something new. NOT RPG
1× editiert, zuletzt 10.02.12 22:47:20

alt Re: can someone fix this?

Yates
Reviewer Off Offline

Zitieren
user skillerLTU hat geschrieben
what did you do? broke to my computer and failed my files?!

Why would I need to do something like that when I already know that I wouldn't need to?
Zum Anfang Vorherige 1 2 3 4 Nächste Zum Anfang
Einloggen, um zu antworten Scripts-ÜbersichtCS2D-ÜbersichtForenübersicht