Forum

> > CS2D > Scripts > can someone fix this?
Forums overviewCS2D overview Scripts overviewLog in to reply

English can someone fix this?

63 replies
Page
To the start Previous 1 2 3 4 Next To the start

old Re: can someone fix this?

GooDCaT
User Off Offline

Quote
user AbAeterno has written
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?

old Re: can someone fix this?

Yates
Reviewer Off Offline

Quote
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.

old Re: can someone fix this?

skillerLTU
User Off Offline

Quote
user Yates has written
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

old Re: can someone fix this?

Yates
Reviewer Off Offline

Quote
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.

old Re: can someone fix this?

GooDCaT
User Off Offline

Quote
user skillerLTU has written
user Yates has written
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"

old Re: can someone fix this?

Yates
Reviewer Off Offline

Quote
user GooDCaT has written
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.

old Re: can someone fix this?

skillerLTU
User Off Offline

Quote
user Yates has written
user GooDCaT has written
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

old Re: can someone fix this?

Bobakrome
User Off Offline

Quote
user Yates has written
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...

old Re: can someone fix this?

Alistaire
User Off Offline

Quote
user skillerLTU has written
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.

old Re: can someone fix this?

Bobakrome
User Off Offline

Quote


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

--EDIT!

Alistaire are you speaking with him or me?

old Re: can someone fix this?

skillerLTU
User Off Offline

Quote
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
edited 1×, last 10.02.12 10:47:20 pm

old Re: can someone fix this?

Yates
Reviewer Off Offline

Quote
user skillerLTU has written
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?
To the start Previous 1 2 3 4 Next To the start
Log in to reply Scripts overviewCS2D overviewForums overview