Register for your free account! | Forgot your password?

Go Back   elitepvpers > MMORPGs > Flyff > Flyff Private Server
You last visited: Today at 20:09

  • Please register to post and access all features, it's quick, easy and FREE!

Advertisement



Teleport mit Geldabzug!

Discussion on Teleport mit Geldabzug! within the Flyff Private Server forum part of the Flyff category.

Reply
 
Old   #1
 
Serenity-.'s Avatar
 
elite*gold: 20
Join Date: Jun 2013
Posts: 445
Received Thanks: 76
Teleport mit Geldabzug!

Kann mir jemand sagen wie ich meinen Teleporter erweitern kann so das er pro teleport geld abzieht.

habe den mit Bildern.

Ich glaube das muss man hier irgendwie machen

strFile = "flaris.tga";
strLandName ="Flaris";
strDes= "Flaris ist die Stadt, in der jeder mal angefangen hat.";
m_nCost.push_back(10000);
Beim Compilen kommt ein Error deshalb gehe ich davon aus das es falsch ist

break;
Serenity-. is offline  
Old 04/29/2014, 10:28   #2
 
elite*gold: 294
Join Date: Jun 2009
Posts: 407
Received Thanks: 587
You would want to define the vector, m_nCost or you would just want to alternate prices using the same variable. I suggest the second. Also, you should do prices in WorldServer rather than the neuz. Sure, to display the price, you could add another string for penya cost in the neuz, in that function.

Anyway, void CDPSrvr::OnTeleportByAPP( CAr & ar, DPID dpidCache, DPID dpidUser, LPBYTE, u_long ) is a place where you could do it perfectly. In fact, since you looked at the Tower for pricing (m_nCost.push_back), just look at the tower in the Worldserver. You'd want to define the money variable and then set prices to each one, and remove the gold.

CDPSrvr::OnTeleportByAPP
Code:
        ar >> nCurSel;
        DWORD dwWorldID;
        D3DXVECTOR3 vPos;
        int nCost = 0;
        switch( nCurSel )
        {
            case 0: vPos = D3DXVECTOR3(6973.0F, 100.0F, 3328.0F); dwWorldID = 1; nCost = 1000; break;
        }
	if( pUser->GetGold() < nCost )
	{
		pUser->AddDefinedText( TID_GAME_LACKMONEY );
		return;
	}
	if(pUser->REPLACE( g_uIdofMulti, dwWorldID, vPos, REPLACE_NORMAL, nDefaultLayer ))
	{
		pUser->AddGold( -nCost );
		PutPenyaLog( pUser, "h", "Costed", nCost );
	}
Avalion is offline  
Old 04/29/2014, 18:51   #3
 
Serenity-.'s Avatar
 
elite*gold: 20
Join Date: Jun 2013
Posts: 445
Received Thanks: 76
errors...

This is my Teleporter code.

Quote:
#ifdef __APP_TELEPORTER
void CDPSrvr::OnTeleportByAPP( CAr & ar, DPID dpidCache, DPID dpidUser, LPBYTE, u_long )
{
#ifdef __NEW_DEBUG
g_Guard.LogDebug("CDPSrvr::OnTeleportByAPP");
#endif
CUser* pUser = g_UserMng.GetUser( dpidCache, dpidUser );
int nCurSel;
if( IsValidObj( pUser ) )
{
ar >> nCurSel;
DWORD dwWorldID;
D3DXVECTOR3 vPos;
switch( nCurSel )
{
case 0: vPos = D3DXVECTOR3(6973.0F, 100.0F, 3328.0F); dwWorldID = 1; break;
case 1: vPos = D3DXVECTOR3(8321.0F, 100.0F, 3720.0F); dwWorldID = 1; break;
case 2: vPos = D3DXVECTOR3(3900.250732F, 59.0F, 4377.806641F); dwWorldID = 1; break;
case 3: vPos = D3DXVECTOR3(5574.530273F, 75.001129F, 3900.282227F); dwWorldID = 1; break;
case 4: vPos = D3DXVECTOR3(3240.482910F, 11.316653F, 3409.634766F); dwWorldID = 1; break;
case 5: vPos = D3DXVECTOR3(1403.403809F, 86.612137F, 514.367432F); dwWorldID = 206; break;
Serenity-. is offline  
Old 04/29/2014, 18:59   #4
 
elite*gold: 0
Join Date: Jan 2014
Posts: 773
Received Thanks: 374
This is the problem if you use a teleporter like this. You can create a teleporter with a resource file.
Drabur is offline  
Old 04/30/2014, 16:10   #5
 
elite*gold: 23
Join Date: Dec 2010
Posts: 743
Received Thanks: 617
Quote:
Originally Posted by Serenity-. View Post
errors...

This is my Teleporter code.
Du musst doch nur sowas hier eingeben über deinem pUser->REPLACE

Quote:
int nCost = 300000; // 300k Penya
if( pUser->GetGold() < nCost )
{
pUser->AddText( "Du hast nicht genügend Penya...." );
return;
}
pUser->AddGold( -nCost );
.SnoX is offline  
Thanks
1 User
Old 05/01/2014, 00:50   #6
 
elite*gold: 294
Join Date: Jun 2009
Posts: 407
Received Thanks: 587
Quote:
Originally Posted by .SnoX View Post
Du musst doch nur sowas hier eingeben über deinem pUser->REPLACE
The version I posted works and allows different prices for each teleport.
Die Version, die ich habe Werke. Es erlaubt einen anderen Preis für verschiedene Orte.
Avalion is offline  
Old 05/01/2014, 03:12   #7
 
elite*gold: 23
Join Date: Dec 2010
Posts: 743
Received Thanks: 617
Quote:
Originally Posted by Avalion View Post
The version I posted works and allows different prices for each teleport.
Die Version, die ich habe Werke. Es erlaubt einen anderen Preis für verschiedene Orte.
Please dont wirte en german aggain haha.
I know that you posted it but the thread owner didn't understand it, so I repeated it again.
.SnoX is offline  
Reply


Similar Threads Similar Threads
[Scripts] DayZ [Ammo Crates | Invisible | Teleport | Map Teleport | Kill All]
08/05/2012 - DayZ - 66 Replies
.
[tut] speed teleport (not map teleport)
08/11/2009 - 12Sky2 - 2 Replies
you need cheat eng for this find the movement speed address current: C61778 2. change to 99999 3. enable your run skill your done you will go so fast you will teleport make sure you don't click in anything bad shit will happen thank me :mofo: :mofo: :mofo:



All times are GMT +1. The time now is 20:10.


Powered by vBulletin®
Copyright ©2000 - 2026, Jelsoft Enterprises Ltd.
SEO by vBSEO ©2011, Crawlability, Inc.
This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

Support | Contact Us | FAQ | Advertising | Privacy Policy | Terms of Service | Abuse
Copyright ©2026 elitepvpers All Rights Reserved.