P Server "NPC base code/shops/drop items" for who asked me 2 do it

07/05/2008 13:27 Some-Guy#1456
I made one a little while ago when testing this source...not much difference just some validation on it:

Code:
if (TheClient.Status == 8)
           {
               if (Splitter[0] == "/tele")
               {
                   if (Splitter[1] != "" & Splitter[2] != "" & Splitter[3] != "")
                   {
                       TheClient.MyChar.Teleport(short.Parse(Splitter[1]), short.Parse(Splitter[2]), short.Parse(Splitter[3]));
                    }
               }
           }
Works for me, but so would the one posted before, goes in chat.cs within the
Code:
if (Message[0] == '/')
method.

Usage /tele mapid co-ord-x co-ord-y

e.g. /tele 1022 150 150
or /mm 1022 150 150 for the previous example posted by tao4229
07/05/2008 13:32 ~Yuki~#1457
Ill try it now it shoud work right?

So cant get it working can u upload a working chat.cs?
07/05/2008 14:28 samehvan#1458
Quote:
Originally Posted by lolmaster123 View Post
Ill try it now it shoud work right?

So cant get it working can u upload a working chat.cs?
why u need some command like that? u have the teleport (/scroll) command allready :confused::confused:

nice code at ur signature by the way ;)
07/05/2008 15:01 ~Yuki~#1459
Quote:
Originally Posted by samehvan View Post
why u need some command like that? u have the teleport (/scroll) command allready :confused::confused:

nice code at ur signature by the way ;)
I wanna have a teleporting function with coords

and i bet the code has in 2 lines 200 errors :P
07/05/2008 16:09 tao4229#1460
Quote:
Originally Posted by lolmaster123 View Post
I wanna have a teleporting function with coords

and i bet the code has in 2 lines 200 errors :P
No errors, mine works fine, problems may be:
You didn't rebuild
You put it like at the TOP of Chat.cs not in the middle with the other ones
You still have PM commands on(And you're not a PM/GM)
I used tab on the Code window, but its actually 4 spaces(I'm used to tab doing 4 spaces from VisualC#2008)
You fail at life(Doubt that one:cool:)
But I'm working on RBing equips, but i'm too much of a noob to get anywhere...Goodluck with the warehouse/guilds/other stuff i could never do (Samehvan'z teaaamm)
07/05/2008 16:24 ~Yuki~#1461
Quote:
Originally Posted by tao4229 View Post
No errors, mine works fine, problems may be:
You didn't rebuild
You put it like at the TOP of Chat.cs not in the middle with the other ones
You still have PM commands on(And you're not a PM/GM)
I used tab on the Code window, but its actually 4 spaces(I'm used to tab doing 4 spaces from VisualC#2008)
You fail at life(Doubt that one:cool:)
But I'm working on RBing equips, but i'm too much of a noob to get anywhere...Goodluck with the warehouse/guilds/other stuff i could never do (Samehvan'z teaaamm)
Not that code lool in my signature:P
And i added it rebuilt successfully but i cant use it in-game
07/05/2008 17:50 samehvan#1462
new Good news

The Monsters Drop items and money when been killed
07/05/2008 18:00 Odonata#1463
Quote:
Originally Posted by samehvan View Post
new Good news

The Monsters Drop items and money when been killed
wow when will it be release?
07/05/2008 18:09 Light200#1464
Quote:
Originally Posted by samehvan View Post
new Good news

The Monsters Drop items and money when been killed
concerning the /mm commands

they help you out when scripting a npc ^^
07/05/2008 18:31 keving#1465
The Team working on this Server is so good respect from me:)
07/05/2008 19:45 ~Yuki~#1466
/mm command works like a charm!
07/05/2008 19:49 samehvan#1467
Quote:
Originally Posted by Light200 View Post
concerning the /mm commands

they help you out when scripting a npc ^^
give an example ,

somthing the teleport statement doesnt do
07/05/2008 20:02 Light200#1468
/mm 1700 800 800
teleports to reborn area, rather easier then GUESS the cords in npc.txt ^^
and you cant /scroll there and some certain other places

also works when you're finding someone, the character tells the map and cords, /scroll can't do that ^^
or some place where you can't /scroll to
07/05/2008 20:20 killerjay333#1469
WOW Sam Awsome Job on this guide i think its gonna be really useful ^^ im almost done with my p-server xD ill look forward to ur updates and thanks for the guide
07/05/2008 20:40 Some-Guy#1470
Quote:
Originally Posted by samehvan View Post
give an example ,

somthing the teleport statement doesnt do
I think he means so that you can experiment with the co-ords before defining them in npc.txt.