[src]Change City

Codes already submitted by people of the forums.
Post Reply
Drajwer
<3 bd long time
Posts: 841
Joined: Fri Dec 10, 2004 3:24 pm

Post by Drajwer »

Code: Select all


    if (memcmp (cp, "/aresden", 8) == 0)
	{
   if (m_pClientList[iClientH]->m_iAdminUserLevel > 0)
     {
       ZeroMemory (m_pClientList[iClientH]->m_cLocation,
     sizeof (m_pClientList[iClientH]->m_cLocation));
       memcpy (m_pClientList[iClientH]->m_cLocation, "aresden", 7);
       m_pClientList[iClientH]->m_cSide = 1;
       SendNotifyMsg (NULL, iClientH, DEF_NOTIFY_CHANGEPLAYMODE, NULL,
        NULL, NULL,
        m_pClientList[iClientH]->m_cLocation);
       SendEventToNearClient_TypeA (iClientH, DEF_OWNERTYPE_PLAYER,
        MSGID_EVENT_MOTION,
        DEF_OBJECTNULLACTION, NULL, NULL,
        NULL);
       return;
     }
	}
      if (memcmp (cp, "/traveller", 10) == 0)
	{
   if (m_pClientList[iClientH]->m_iAdminUserLevel > 0)
     {
       ZeroMemory (m_pClientList[iClientH]->m_cLocation,
     sizeof (m_pClientList[iClientH]->m_cLocation));
       memcpy (m_pClientList[iClientH]->m_cLocation, "NONE", 4);
       m_pClientList[iClientH]->m_cSide = 0;
       SendNotifyMsg (NULL, iClientH, DEF_NOTIFY_CHANGEPLAYMODE, NULL,
        NULL, NULL,
        m_pClientList[iClientH]->m_cLocation);
       SendEventToNearClient_TypeA (iClientH, DEF_OWNERTYPE_PLAYER,
        MSGID_EVENT_MOTION,
        DEF_OBJECTNULLACTION, NULL, NULL,
        NULL);
       return;
     }
	}
      if (memcmp (cp, "/elvine", 7) == 0)
	{
   if (m_pClientList[iClientH]->m_iAdminUserLevel > 0)
     {

       ZeroMemory (m_pClientList[iClientH]->m_cLocation,
     sizeof (m_pClientList[iClientH]->m_cLocation));
       memcpy (m_pClientList[iClientH]->m_cLocation, "elvine", 6);
       m_pClientList[iClientH]->m_cSide = 2;
       SendNotifyMsg (NULL, iClientH, DEF_NOTIFY_CHANGEPLAYMODE, NULL,
        NULL, NULL,
        m_pClientList[iClientH]->m_cLocation);
       SendEventToNearClient_TypeA (iClientH, DEF_OWNERTYPE_PLAYER,
        MSGID_EVENT_MOTION,
        DEF_OBJECTNULLACTION, NULL, NULL,
        NULL);
       return;
     }
	}

just /aresden /elvine and /traveller :)

have fun
<img src='http://img440.imageshack.us/img440/2627/15pt.jpg' border='0' alt='user posted image' /><br><br>HBPolska characters:<br><br>Hellios 150+ Aresden Hero Mage<br>TheBill 120 Aresden plrider<br>Kill_Me 100 Full-Hero plrider<br>Rockeater 110+ Aresden Plate Mage<br><br><a href='http://www.helbreath.org' target='_blank'>http://www.helbreath.org</a> come and play (250 ppl online)
Tafka12
&lt;3 bd long time
Posts: 772
Joined: Wed Dec 28, 2005 6:32 pm

Post by Tafka12 »

for GM only? GM's can do in char.txt anyway or use char edit php.
players need it more :)
nice anyway
<img src='http://www.hot.ee/carvanho/taavi.png' border='0' alt='user posted image' /><br><br><img src='http://www.hot.ee/carvanho/Elvine.png' border='0' alt='user posted image' /><br><img src='http://www.hot.ee/carvanho/LieroX.png' border='0' alt='user posted image' /><br><img src='http://www.hot.ee/carvanho/Football.png' border='0' alt='user posted image' />
Drajwer
&lt;3 bd long time
Posts: 841
Joined: Fri Dec 10, 2004 3:24 pm

Post by Drajwer »

lol just think a bit

you are gm and srv doesnt have php scripts for security reasons. then what? then use mine commands :) want be ares - you are ares. And I dont think players need it more.
<img src='http://img440.imageshack.us/img440/2627/15pt.jpg' border='0' alt='user posted image' /><br><br>HBPolska characters:<br><br>Hellios 150+ Aresden Hero Mage<br>TheBill 120 Aresden plrider<br>Kill_Me 100 Full-Hero plrider<br>Rockeater 110+ Aresden Plate Mage<br><br><a href='http://www.helbreath.org' target='_blank'>http://www.helbreath.org</a> come and play (250 ppl online)
Treax2
Loyal fan
Posts: 281
Joined: Fri Mar 04, 2005 5:05 pm
Location: Estonia
Contact:

Post by Treax2 »

Very nice code ... good code to my HG colletion xD Thank You
Post Reply